The Archives

  • 03.Dec.09
    screen: working with the scrollback buffer shell | rafacas | (0)
    screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. That is, multiple console applications can be run from the same terminal, each one with its own window. But we have already talked about the screen command before. In this post we are going to focus on the scrollback buffer feature. There is a scrollback history buffer for each virtual terminal, allowing to browse, or even to search, through the history of your windows. There is a copy-and-paste mechanism as well that allows moving text regions between windows. By default, the buffer has only ...
  • 01.Nov.09
    Vim. Editing multiple files shell | fernape | (1)
    In previous issues, we have edited one file at a time. We did this because there were other points of interest at that time. However, Vim can handle more than one file at a time using several different techniques including buffers, viewports and tabs last one, since Vim 7. In this issue we take a look at these handy mechanisms that will speed up your work. Buffers We can think of a buffer as a place inside Vim where a file is loaded. In the following example, I will use a couple of files: $ cat file1 file2 This is file 1 This is ...
  • 21.Jan.09
    Perl autoflush cmd, shell | pfortuny | (0)
    $ perl -e '$|=1; while(<>){print "you entered: $_";}' Even though in the above code it is irrelevant, the $|=1 assignment makes all the output be unbuffered (auto-flushed). This is quite useful in sockets, network protocols and IPC.