LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2006, 02:43 PM   #1
Certifried
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Rep: Reputation: 0
Split view Xterm ??


I'm looking for a terminal emulator that supports split views (just like konqueror's web browser). There are often times when I want to have 2 terminal windows up next to each other (or vertical). Tabs are cool, but you still have to click back and forth (color me lazy)
 
Old 04-26-2006, 03:11 PM   #2
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Rep: Reputation: 31
Well, lessee - you do know you can switch tabs by typing Alt-1, Alt-2, etc. for each session?

OK, and you can have as many terminals open as you want? So for instance, you could always have your window manager start it thus: "xterm -geometry 40x20" other terminal emulators have similar options.

then you can have Emacs full-screened and type Ctrl-x 2 to split it into top and bottom halves, then command Meta-(Alt-)x eshell to start Emacs' own terminal emulator in each window. Ctrl-x o to switch to either buffer.

Finally, (since you refer to being too "lazy" to use the mouse) It sounds like you're ripe for Ratpoison, the mouse-free environment which takes split-frame desktops as a given. A few key-bindings to learn, and after that you can have as many subdivided frames as you want!

Personally, I just have virtual desktops and one window per desktop. I always set my key bindings so Alt-F# switches to that desktop and Alt-# switches to the various tabs within every window that has tabs.

Hope one of these is close to what you wanted!
 
Old 04-26-2006, 03:23 PM   #3
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Sounds like you want screen.
 
Old 04-27-2006, 09:05 AM   #4
Certifried
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you for the response, Hosiah. The Emacs solution sounds about as close to what I'm looking for as I've seen. I know about all the different tabs and and shortcut keys and what-not. What I do now is bring up two gterms and resize them so they are top/bottom on my screen. It's just a pain to have to do that each time What I'm really looking for is the VI style of split-screens but, unfortunately, when you start a shell from VI in split screen 1 shell takes up the whole screen so you can't actually have 2 split window shells. I tried the emacs solution you presented, however the split windows seem to be the same shell (command and output from 1 shell show up in both buffers). Is that the typical behavior? That's the closest I've seen to what I'm actually looking for.


ioerror - ty also for the reply. what is "screen" ??
 
Old 04-27-2006, 10:23 AM   #5
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Slackware package description:

Quote:
screen: Screen is a full-screen window manager that multiplexes a physical
screen: terminal between several processes (typically interactive shells).
screen: Each virtual terminal provides the functions of a DEC VT100 terminal
screen: and several control functions from the ISO 6492 (ECMA 48, ANSI X3.64)
screen: and ISO 2022 standards (e.g. insert/delete line and support for
screen: multiple character sets). There is a scrollback history buffer for
screen: each virtual terminal and a copy-and-paste mechanism that allows
screen: moving text regions between windows.
In other words, it lets you run multiple shells (or any other console app) in a single xterm and switch between them. You can also split the screen horizontally (but not vertically).
 
Old 04-28-2006, 09:07 AM   #6
Certifried
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Original Poster
Rep: Reputation: 0
ioerror - THANK YOU!! This is *exactly* what I was looking for. It took me a few minutes to get a login shell on the lower half after I split the screen but it works great. Horizontal split is really what I prefer, so that works out just fine.

I start screen, then "C-a S" to split, "C-a TAB" to focus the lower half, then "C-a C-c" to get a shell in the lower half. Is that normal? It took me a few minutes to figure it out, but that's the only way I was able to get it to work.
 
Old 04-28-2006, 10:45 AM   #7
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
No problem. BTW, you can change the 'escape' key (the prefix key) to whatever you want. The default is ctrl-a, but I use that in the shell and my text editor to move to the beginning of the line. I changed it to ctrl-w, a key I don't normally use.

You can change all the key bindings to whatever is more comfortable for you, and there are lots other other options too. The man page is pretty comprehensive, unlike some man pages. An essential option is 'nethack on', very amusing, especially if you play (or have played) nethack. I've only played it briefly but I still like this option. It changes all the messages to alternative versions. ("You cannot escape from window 0!" Heh heh, I never get tired of that!).

You can also cut and paste with the keyboard, can't remember the default keys for that because I have changed them, but you can see the keybindings with <prefix>-?

Quote:
I start screen, then "C-a S" to split, "C-a TAB" to focus the lower half, then "C-a C-c" to get a shell in the lower half. Is that normal?
Yeah, that's normal, split doesn't automatically start a new shell, so you have to start one, or switch to another window.

Last edited by ioerror; 04-28-2006 at 10:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 05:45 AM
KDE Konqueror View Mode Icons (Image Preview/Tree View) sadarax Linux - General 7 06-27-2006 01:45 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 04:51 AM
View Images in an xterm? debuser Linux - General 2 01-12-2005 09:40 AM
Starting Konqueror in Split View Napper Linux - Software 3 03-30-2004 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration