Saturday, April 19, 2025

C++ Telnet, Headers

In this tutorial we will play with Telnet "Server Header". We are trying to create (just for fun) old Telnet Welcome Message when users log in.

If you don't know what Telnet is, go to Google Image option and type "Telnet", or "Telnet Games" in a search box.

We are just creating bunch of string. You can use this type of Menu or Header in all other programming languages that you will learn over time. Especially if you are beginner and like to play around in Terminal or DOS.

Yes, you can copy-paste, but it's better idea to type this source manually, at least while you are learning.

Over time we will learn how to create real Menus in C++ that will run specific functions to get some job done. Run this code:

#include <iostream>

using namespace std;

int main() {

    cout << "#########################################" << endl;
    cout << "#" << endl;
    cout << "#" << endl;
    cout << "# Welcome to Telnet Control Panel v 0.1 #" << endl;
    cout << "#" << endl;
    cout << "#" << endl;
    cout << "#########################################" << endl;

    return 0;

}

Result:

#########################################
#
#
# Welcome to Telnet Control Panel v 0.1 #
#
#
#########################################

Process returned 0 (0x0)   execution time : 0.054 s
Press any key to continue.

There's corresponding YouTube tutorial that covers this topic.

And this is How to Activate Telnet Client on Windows 10, if you like to try it. This one is for FTP Client.

No comments:

Post a Comment

Tkinter Introduction - Top Widget, Method, Button

First, let's make shure that our tkinter module is working ok with simple  for loop that will spawn 5 instances of blank Tk window .  ...