ssh with separate stdin, stdout, stderr AND tty
This local command is the reference point. Let’s assume it successfully processes some binary data:
This local command is the reference point. Let’s assume it successfully processes some binary data:
After about an hour of Googling this, I can’t believe nobody has actually asked this question before…
There are several points where I/O is passed through, some of which (to my knowledge) are the shell, pty, tty, termios, terminal emulator application. In most terminal emulators, long command lines (ones that exceed current $COLUMNS) are wrapped to a new line before the user submits the command by pressing Enter. Also, the line is wrapped backward to the line above when the appropriate number of characters are removed from the command line as one would expect.
How do I make the cursor stop blinking when in a TTY? (or anywhere else).
Suppose, I have a system without X server. I can only log in from the console. It seems, by default linux console supports only 8 colors:
I have in my .bashrc
I would like to, every 30 seconds or so, copy all text of a certain terminal or terminal emulator to a file, and display it in conky. I’m not talking about simple redirection (command > file), which doesn’t work for ncurses programs or games such as NetHack.
If you fire up a terminal and call an executable (assuming one that’s line oriented for simplicity) you get a reply to the command from the executable. How does this get printed to you (the user)? Does the terminal do something like pexpect? (poll waiting for output) or what? How does it get notified of output to be printed out? And how does a terminal start a program? (Is it something akin to python’s os.fork()? ) I’m puzzled how a terminal works, I’ve been playing with some terminal emulator and I still don’t get how all this magic works. I’m looking at the source of konsole (kde) and yakuake (possibly uses konsole) an I can’t get where all that magic happens.
I have an application that binds CTRL+ALT+F7, but my linux machine seems to catch the keystroke.
I’m trying to set up automatic SSH hopping through a server which doesn’t have nc.