DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th November 2009
Sunnz's Avatar
Sunnz Sunnz is offline
Real Name: I don't have real time
Just a computer user...
 
Join Date: May 2008
Location: See Google Maps
Posts: 101
Default Side scroll in CLI?

Just wondering, for command line programs that have "wide output"... like top -C, how would you "side scroll"? I could easily resize xterm if I am running some kind of a GUI on a high-ish resolution display, but what if you are stuck in a console? (crtl-alt-F1 thing... I don't know if that's the proper term... ???)
__________________
She sells C shells by the seashore.
Reply With Quote
  #2   (View Single Post)  
Old 5th November 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

The crtl-alt-f1 thing is often called a Virtual TeleTYpewriter or 'vtty', since it uses a series of virtual tty interfaces in order to multiplex the hardware into acting like several consoles without having to run additional software like window, screen, or tmux.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 7th November 2009
Sunnz's Avatar
Sunnz Sunnz is offline
Real Name: I don't have real time
Just a computer user...
 
Join Date: May 2008
Location: See Google Maps
Posts: 101
Default

Hmm I see...

To the original question...

For top it can wrap around by something like "top -C -d1".

But I am still not sure what to do in the general case where it goes beyond edge of the screen?
__________________
She sells C shells by the seashore.
Reply With Quote
  #4   (View Single Post)  
Old 7th November 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I believe some terminals had the ability to shift between different modes (AxB and CxD; where the letters are $COLUMNSx$LINES) but am not aware if that is implemented by the console drivers.

Generally it's considered a program problem: vi for example treats it as one line unless something like wrapmargin is set. Like wise ksh will `scroll` the line edit if your typing gets to close to the right margin.


Someone here might be able to speak from a greater depth of experience, which is why I glanced over that ^ part in my previous post.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 7th November 2009
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by Sunnz View Post
Hmm I see...

To the original question...

For top it can wrap around by something like "top -C -d1".

But I am still not sure what to do in the general case where it goes beyond edge of the screen?
I don't think it goes "beyond the screen", the application (top) is probably aware of the terminal size (ncurses) and is printing only as many characters as can fit on a line, to avoid wrap around.
AFAIK, all you can do in this case is increase the terminal size.
On FBSD you can use vidcontrol(1) for this purpose.
Reply With Quote
  #6   (View Single Post)  
Old 7th November 2009
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

I've never seen top going beyond the column limit (at least under FreeBSD).
Even if you run it under X and increase the width of your terminal emulator, top will only move the uptime and the time to the right and will leave the rest as it is normally.
__________________
May the source be with you!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
read & modify files out side chroot jail Dr_Death_UAE FreeBSD Security 5 6th November 2008 09:20 PM
Cannot get touchpad to scroll! cgc2 FreeBSD General 5 16th August 2008 05:53 PM


All times are GMT. The time now is 06:54 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick