Is there a terminal program that distinguishes between input, output, and commands?

Is there a terminal program that shows the difference between input, standard output, error output, prompt and user-entered commands? It should also show when standard input, or command execution, is required.

One way would be to distinguish each differently. The cursor may change color depending on whether it was waiting for a command, running a command, or waiting for standard input.

Another way would be to have 3 frames β€” a large frame at the top for output (including a prompt and running commands), a small frame at the bottom for standard input, and a single line frame at the bottom for a linear input command. This might even allow you to run another command to enter input while the previous command is still waiting for standard input.

From http://jamesjava.blogspot.com/2007/09/terminal-window-with-3-frames.html

+4
source share
3 answers

Hotwire may be a good candidate, but he doesn’t do it out of the box, AFAIK

+1
source

At the moment, it seems that there is no such program.

0
source

My gush (Graphical User SHell) program does part of this. It uses different colors for the commands and the stdin / stdout / stderr program. Please note that the traditional separation of the shell and the terminal makes this impossible, because the interface between them models the old series and therefore has only one input and one output channel. I will get around this problem by combining the shell and terminal into one program.

It would be nice to also indicate when the program is waiting for input, but I don’t think there is a way to detect this if you do not follow the system calls of the child program to determine when it is trying to read stdin. For interactive programs, you can guess that if the last output was not end with a new line, this probably prompts for input, but it will not work for non-interactive programs, for example. SED.

0
source

Source: https://habr.com/ru/post/1276699/


All Articles