On 10/9/06, Philip Ganchev <[EMAIL PROTECTED]> wrote: > On 10/6/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: > > On 10/6/06, Beni Cherniavsky <[EMAIL PROTECTED]> wrote: > [...] > > > Not necessarily. The terminal stores a hidden bit at every end of > > > line, rememebering whether it was crossed by wrapping a long text. > > > I'm not sure what's the exact rule that controls it but if you echo a > > > long string that wraps and cut-and-paste it you will get the long text > > > back without newlines. > > > > Any information on how to manipulate the terminals line wrapping would > > be greatly appreciated. > > Are you saying that you do not know how to make the text appear at > column 1 on the new line? That's why it has to be indented at least > as much as the prompt? >
No, I can move the cursor just fine. I made wrapping use the same indentation as the prompt to let make things more readable and to make it obvious we are in multiline mode. There are two terminal related problems with the multiline code that I don't know how to handle: * When selecting wrapped text with the mouse, the 'wrapping characters' are also copied. It would be cool if they could be made to magically disapear, as Beni suggested might be possible. Note that other programs, like emacs, don't do this, which implies it's non-trivial. * When resizing a terminal with wrapped commands, the terminal becomes full of giberish. This seems nearly impossible to avoid, since at least on some terminals, the cursor movement commands become unreliable when dealing with text that has been automatically wrapped by the terminal as a result of resizing. Even worse moving the cursor upwards seems to sometimes move text upwards as well, as if the terminal was somehow trying to 'unwrap' the text as a result of the cursor movement. I'm not sure this is solveable, curses-based programs simply cop out by repainting the entire screen. Fish doesn't have that luxury, since we want to preserve the output of previous commands. -- Axel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users