x********g 发帖数: 100 | 1 In most terminals, all commands and results are stacked stacked up, make it
not easy to find things, even if you can change the prompt statement (PS) to
make it distinct from the others. In my opinion, a more efficient user
interface could be like this:
1) The PS is fixed on the first line.
2) You enter a command, and the result shows below the PS.
3) When you are typing another command, the result of the previous command
stays until you type Enter, whereas the screen is cleared and shows the
re | i*****f 发帖数: 578 | 2 if this is not a 坑, I suggest you to do more investigation on any *nix
shell before mentionling ANY of the 4 points.
it
to
【在 x********g 的大作中提到】 : In most terminals, all commands and results are stacked stacked up, make it : not easy to find things, even if you can change the prompt statement (PS) to : make it distinct from the others. In my opinion, a more efficient user : interface could be like this: : 1) The PS is fixed on the first line. : 2) You enter a command, and the result shows below the PS. : 3) When you are typing another command, the result of the previous command : stays until you type Enter, whereas the screen is cleared and shows the : re
| p*****s 发帖数: 344 | 3 basically you want your terminal act like a browser environment, which is
not a bad idea and can be easily implemented.
it
(PS) to
command
【在 x********g 的大作中提到】 : In most terminals, all commands and results are stacked stacked up, make it : not easy to find things, even if you can change the prompt statement (PS) to : make it distinct from the others. In my opinion, a more efficient user : interface could be like this: : 1) The PS is fixed on the first line. : 2) You enter a command, and the result shows below the PS. : 3) When you are typing another command, the result of the previous command : stays until you type Enter, whereas the screen is cleared and shows the : re
| b*****l 发帖数: 9499 | 4 不好的地方在于,以前的 command 的结果就被抹掉了。
现在的方式有很多好处,比如说,screen 下可以向上翻屏看历史,等等。
it
to
to
【在 x********g 的大作中提到】 : In most terminals, all commands and results are stacked stacked up, make it : not easy to find things, even if you can change the prompt statement (PS) to : make it distinct from the others. In my opinion, a more efficient user : interface could be like this: : 1) The PS is fixed on the first line. : 2) You enter a command, and the result shows below the PS. : 3) When you are typing another command, the result of the previous command : stays until you type Enter, whereas the screen is cleared and shows the : re
| x********g 发帖数: 100 | 5 我说的也是可以上下翻页的,而且每页只显示一个命令的结果,这样更清楚.通常不会需
要看上上一个命令结果吧? | x********g 发帖数: 100 | 6
一语中的! 具体怎么做呢,直接用.bashrc就可以吗?
【在 p*****s 的大作中提到】 : basically you want your terminal act like a browser environment, which is : not a bad idea and can be easily implemented. : : it : (PS) to : command
| b*****l 发帖数: 9499 | 7 嗯,那样的话应该挺不错的。不知道 emacs 有没有这种 mode。。。
【在 x********g 的大作中提到】 : 我说的也是可以上下翻页的,而且每页只显示一个命令的结果,这样更清楚.通常不会需 : 要看上上一个命令结果吧?
| C********s 发帖数: 120 | 8 emacs has dozens of such modes, for example, sql-mode, where the frame (
emacs window) is split in two, the lower window is connecte to the database
server (say, using SQL*Plus), the upper window is a text buffer with SQL
syntax highlights. You enter/edit your SQL statements in the upper window,
use a key-sequence (Ctrl-c, Ctrl-c) to send the last SQL statement to lower
window. The content in lower window can be treated as a regular buffer, so
you can easily search/copy/edit the results as well |
|