Using gnome-terminal and the like, you can set the font size that you want and then if you drag the window larger or smaller, you get more or less character per line.
Is there a terminal that allows you to set the rows and columns that you want and then resizes the text instead? gnome-terminal has a zoom-in and zoom-out function that's close to what I want but it's not "infinite" and works by repeatedly hitting hotkeys, not by changing the window size.
The objective here is to use ncurses-based programs and be able to "blow them up" by dragging the terminal window bigger or clicking the maximize button.
On Sat, 2011-01-08 at 22:18 -0600, Frank Cox wrote:
Is there a terminal that allows you to set the rows and columns that you want and then resizes the text instead? gnome-terminal has a zoom-in and zoom-out function that's close to what I want but it's not "infinite" and works by repeatedly hitting hotkeys, not by changing the window size.
I don't know about resizing the text but this "gnome-terminal --geometry=80x50" will give you a window that size 80 char wide and 50 lines. You would need a wrapper script or a Launcher from the gnome desktop.
Ncurses want scale with that but you can Zoom in on it for sure.
John
On Sun, 9 Jan 2011, JohnS wrote:
On Sat, 2011-01-08 at 22:18 -0600, Frank Cox wrote:
Is there a terminal that allows you to set the rows and columns that you want and then resizes the text instead? gnome-terminal has a zoom-in and zoom-out function that's close to what I want but it's not "infinite" and works by repeatedly hitting hotkeys, not by changing the window size.
I don't know about resizing the text but this "gnome-terminal --geometry=80x50" will give you a window that size 80 char wide and 50 lines. You would need a wrapper script or a Launcher from the gnome desktop.
Ncurses want scale with that but you can Zoom in on it for sure.
ncurses catches SIGWINCH; applications using ncurses may/may not adjust their layout accordingly.
On Sun, 09 Jan 2011 02:53:02 -0500 JohnS wrote:
I don't know about resizing the text but this "gnome-terminal --geometry=80x50" will give you a window that size 80 char wide and 50 lines.
That I already knew, but it's not what I want to do.
I wrote a program that manages classified ads. It's designed to run on an 80x24 screen size with ncurses and it currently runs in gnome-terminal.
When a customer comes in with a question or change to their ads, the people who use the program would like to be able to maximize the size of the terminal window and have the text size increase to match the window size so they can show the customer what his ad looks like from the other side of the counter.
On Sun, Jan 9, 2011 at 1:26 PM, Frank Cox theatre@sasktel.net wrote:
I wrote a program that manages classified ads. It's designed to run on an 80x24 screen size with ncurses and it currently runs in gnome-terminal.
When a customer comes in with a question or change to their ads, the people who use the program would like to be able to maximize the size of the terminal window and have the text size increase to match the window size so they can show the customer what his ad looks like from the other side of the counter.
Can they use Compiz? I have seen guys showing off some control-wheel-something-else combo to zoom the screen. Looks like it's a continuous zoom.
On Sun, 09 Jan 2011 13:42:41 -0300 Eduardo Grosclaude wrote:
Can they use Compiz? I have seen guys showing off some control-wheel-something-else combo to zoom the screen. Looks like it's a continuous zoom.
That may be an option for the future but at this time the application runs on a LTSP server that drives a bunch of Neoware Capio-600 series terminals and there's no way that the video hardware in those terminals will handle compiz.
They will probably get some more high-powered terminals eventually, not least because they want to start using widescreen monitors that also won't work with their existing terminals. But at the moment, they just haven't got the horsepower to run Compiz on the hardware that they have right now.
On Sun, Jan 9, 2011 at 1:26 PM, Frank Cox theatre@sasktel.net wrote:
On Sun, 09 Jan 2011 02:53:02 -0500 JohnS wrote: I wrote a program that manages classified ads. It's designed to run on an 80x24 screen size with ncurses and it currently runs in gnome-terminal.
When a customer comes in with a question or change to their ads, the people who use the program would like to be able to maximize the size of the terminal window and have the text size increase to match the window size so they can show the customer what his ad looks like from the other side of the counter.
How about running your app under 'screen', then fire up a second gnome-terminal and attach to it with 'screen -x'. Zoom in as desired with regular control-+ sequences. Then minimize and keep it lurking. When user wants to show big text, temporarily switches to the hidden screen and then back again. Probably too contrived? Not "infinite", though.
On Sun, 09 Jan 2011 14:15:44 -0300 Eduardo Grosclaude wrote:
How about running your app under 'screen', then fire up a second gnome-terminal and attach to it with 'screen -x'. Zoom in as desired with regular control-+ sequences. Then minimize and keep it lurking. When user wants to show big text, temporarily switches to the hidden screen and then back again.
Now that's clever!
Unfortunately, the folks using the programs tend to keep 4 or 5 instances of it open on each of their desktops so when they are answering phones, checking email, entering faxes and serving customers at the counter they don't have to keep jumping out of the record they are working on to do something else.
That's a mighty clever idea, though. Won't do what I'm looking for, but it's very cool.
On Sun, Jan 9, 2011 at 9:47 AM, Frank Cox theatre@sasktel.net wrote:
On Sun, 09 Jan 2011 14:15:44 -0300 Eduardo Grosclaude wrote:
How about running your app under 'screen', then fire up a second gnome-terminal and attach to it with 'screen -x'. Zoom in as desired with regular control-+ sequences. Then minimize and keep it lurking.
Now that's clever!
Unfortunately, the folks using the programs tend to keep 4 or 5 instances of it open on each of their desktops
Xterm ctrl-right-button menu lets you choose from among 7 different font sizes, which can be assigned using X resources. If they could be trained to hit ctrl-right-button and select "Huge", the problem devolves to one of finding the right font to assign to the resource. Not quite as easy as clicking the maximize button, but close.
With gnome-terminal you have to configure the desired appearance as a Profile and use the Terminal menu. I just created one with Edit -> Profiles... and chose to base it on the Default profile, named it Maximize, turned off "Use the system terminal font" on the next dialog and chose "Monospace 24" as the font, which is the largest one that won't push part of the window off the screen. Now Terminal -> Change Profile -> Maximize gives me a huge 80x24 terminal.
I'm sure there are other terminal emulators that provide something similar.
On Sun, 9 Jan 2011, Bart Schaefer wrote:
On Sun, Jan 9, 2011 at 9:47 AM, Frank Cox theatre@sasktel.net wrote:
On Sun, 09 Jan 2011 14:15:44 -0300 Eduardo Grosclaude wrote:
How about running your app under 'screen', then fire up a second gnome-terminal and attach to it with 'screen -x'. Zoom in as desired with regular control-+ sequences. Then minimize and keep it lurking.
Now that's clever!
Unfortunately, the folks using the programs tend to keep 4 or 5 instances of it open on each of their desktops
Xterm ctrl-right-button menu lets you choose from among 7 different font sizes, which can be assigned using X resources. If they could be trained to hit ctrl-right-button and select "Huge", the problem devolves to one of finding the right font to assign to the resource. Not quite as easy as clicking the maximize button, but close.
shift-keypad-plus and shift-keypad-minus are easier to use.
But the request was for something that would retain the same screen dimensions while changing the lines/columns. xterm doesn't do that, except when it's constrained by being maximized.
On Sun, Jan 9, 2011 at 10:27 AM, Thomas Dickey dickey@his.com wrote:
But the request was for something that would retain the same screen dimensions while changing the lines/columns.
Actually I believe the request is for something that will retain the same lines/columns while varying the font size to match the new screen dimensions.
On Sun, 9 Jan 2011, Bart Schaefer wrote:
On Sun, Jan 9, 2011 at 10:27 AM, Thomas Dickey dickey@his.com wrote:
But the request was for something that would retain the same screen dimensions while changing the lines/columns.
Actually I believe the request is for something that will retain the same lines/columns while varying the font size to match the new screen dimensions.
ah, okay. xterm does that (not infinite).
On Sunday 09 Jan 2011 19:58:54 Bart Schaefer wrote:
On Sun, Jan 9, 2011 at 10:27 AM, Thomas Dickey dickey@his.com wrote:
But the request was for something that would retain the same screen dimensions while changing the lines/columns.
Actually I believe the request is for something that will retain the same lines/columns while varying the font size to match the new screen dimensions.
IIRC PuTTY on Windows has such option and there is a GNU/Linux version, may be worth checking out. It should also be possible to run a normal (local) shell under PuTTY instead of SSH but not sure if it's exposed (via options that is).
On Mon, 10 Jan 2011 12:45:25 +0000 Michael Gliwinski wrote:
IIRC PuTTY on Windows has such option and there is a GNU/Linux version, may be worth checking out. It should also be possible to run a normal (local) shell under PuTTY instead of SSH but not sure if it's exposed (via options that is).
Interesting. I never realized that putty was available for Linux. I'll look at it.
Thanks!
On Sun, 09 Jan 2011 10:06:55 -0800 Bart Schaefer wrote:
With gnome-terminal you have to configure the desired appearance as a Profile and use the Terminal menu. I just created one with Edit -> Profiles... and chose to base it on the Default profile, named it Maximize, turned off "Use the system terminal font" on the next dialog and chose "Monospace 24" as the font, which is the largest one that won't push part of the window off the screen. Now Terminal -> Change Profile -> Maximize gives me a huge 80x24 terminal.
Interesting. I will play with this scheme.
Thanks!