This is a discussion on ksh command line problem within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Is there any way to get ksh to display complete lines when running in a wide window instead of ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| dave <daf@amd.localhost.comcast.net> wrote: > Is there any way to get ksh to display complete lines when running in a > wide window instead of just printing pieces of the line? Yes; occasionally, ksh can get a bit confused [1], but resizing the window usually fixes that. Joachim [1] There is of course a more technical explanation, but I'm not sure I understand enough of the issues to attempt to give it. |
| |||
| Joachim Schipper <jdNoOtSPAMschipper@math.uu.nl> wrote: > dave <daf@amd.localhost.comcast.net> wrote: >> Is there any way to get ksh to display complete lines when running in a >> wide window instead of just printing pieces of the line? > > Yes; occasionally, ksh can get a bit confused [1], but resizing the > window usually fixes that. > > Joachim > > [1] There is of course a more technical explanation, but I'm not sure I > understand enough of the issues to attempt to give it. I normally have trouble with this when my pwd (printed in the prompt) gets long when I am 5 levels down in a build file system. But right now I am editing a 170 character command line 5 levels down in the buiild file system and the combo is particularly aggravating. I just put the command line in a script file for editing convenience. I am being plagued by ergoonometric aggravations today, including problems with my vision. I need new glasses. But the OS is working well. -- |
| |||
| dave <daf@amd.localhost.comcast.net> wrote: > Is there any way to get ksh to display complete lines when running in a > wide window instead of just printing pieces of the line? ksh needs to be made aware that the window size has changed. Normally xterm should send a SIGWINCH... but somehow this doesn't happen. Hmm, something to look into. You can manually tell ksh to pick up the new window size with "kill -WINCH $$". -- Christian "naddy" Weisgerber naddy@mips.inka.de |
| |||
| Christian Weisgerber <naddy@mips.inka.de> wrote: > dave <daf@amd.localhost.comcast.net> wrote: > >> Is there any way to get ksh to display complete lines when running in a >> wide window instead of just printing pieces of the line? > > ksh needs to be made aware that the window size has changed. Normally > xterm should send a SIGWINCH... but somehow this doesn't happen. > Hmm, something to look into. > > You can manually tell ksh to pick up the new window size with > "kill -WINCH $$". > That worked and is very handy. Thanks! -- |
| |||
| Christian Weisgerber <naddy@mips.inka.de> wrote: > ksh needs to be made aware that the window size has changed. Normally > xterm should send a SIGWINCH... but somehow this doesn't happen. > Hmm, something to look into. Now that I've looked, I see that I was mistaken. ksh *is* sent a SIGWINCH. However, it won't take the new window width into account until the input line after the current one... > You can manually tell ksh to pick up the new window size with > "kill -WINCH $$". .... so just pressing return does the trick, too. -- Christian "naddy" Weisgerber naddy@mips.inka.de |
| |||
| Christian Weisgerber <naddy@mips.inka.de> wrote: > Christian Weisgerber <naddy@mips.inka.de> wrote: > >> ksh needs to be made aware that the window size has changed. Normally >> xterm should send a SIGWINCH... but somehow this doesn't happen. >> Hmm, something to look into. > > Now that I've looked, I see that I was mistaken. ksh *is* sent a > SIGWINCH. However, it won't take the new window width into account > until the input line after the current one... > >> You can manually tell ksh to pick up the new window size with >> "kill -WINCH $$". > > ... so just pressing return does the trick, too. This did not work for me. I made konsole window as wude asmy screen but ksh still printed only partial lines about half the width of the screen. I think I will disable pwd in the prompt when pwd gets long. -- |
| ||||
| dave <daf@amd.localhost.comcast.net> wrote: > This did not work for me. I made konsole window as wude asmy screen > but ksh still printed only partial lines about half the width of > the screen. I think I will disable pwd in the prompt when pwd gets long. Well, then konsole--you mean the KDE terminal emulator, right?--does something wrong. -- Christian "naddy" Weisgerber naddy@mips.inka.de |