-
Junior Member
registered user
using xterm to split text-based screen into 4
I've been able to start 4 programs at once in text mode, but I'd like to be able to split the screen into 4 separate windows, each with it's own output (upper left 1/4, upper right 1/4, bottom left 1/4, and bottom right 1/4).
I started trying with 'newwin':
Code:
newwin(12, 39, 0, 0)
newwin(12, 39, 0, 40)
newwin(12, 39, 13, 0)
newwin(12, 39, 13, 40)
But I'm getting syntax errors.
Somebody suggested 'xterm -e program', so I tried:
Code:
xterm -e ./1.sh &
xterm -e ./2.sh &
xterm -e ./3.sh &
xterm -e ./4.sh
But now it tells me 'xterm command not found' - is xterm not usable in knoppix?
Or, is there a different way I should be trying?
thanks in advance
gb
-
Junior Member
registered user
think I found the issue....
If I type 'xterm' in a terminal from the desktop, a smaller terminal pops up. But if I type 'xterm' from root prompt in text mode, I get a warning that 'xterm' can't be used as root(?).
So, what's the best way around this?
-
Junior Member
registered user
forgot to add the message:
Warning: This program is an suid-root program or is being run by the root user. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s
I even booted to the desktop, then opened terminal and 'sudo init 3', then ran my script - but still gives the same message.
ps:
I just realized I posted in wrong section.... sorry about that - feel free to move.
gb
-
Junior Member
registered user
got it.....
the main issue, is I was in runlevel 3 - there's no x in runlevel 3
but, I figured it out with openvt:
Code:
openvt -s ./1.sh &
openvt -s ./2.sh &
openvt -s ./3.sh &
openvt -s ./4.sh
then, to alternate between virtual terminals:
Code:
ctrl+alt+F2 = vt1
ctrl+alt+F3 = vt2
ctrl+alt+F4 = vt3
ctrl+alt+F5 = vt4
ctrl+alt+F1 brings you back to the original terminal, displaying the root prompt - ready for anything else you need to do.
cheers
Similar Threads
-
By Wollongong in forum General Support
Replies: 2
Last Post: 04-07-2010, 01:05 PM
-
By rhpot1991 in forum General Support
Replies: 6
Last Post: 07-27-2004, 03:03 PM
-
By tdoman in forum Laptops
Replies: 0
Last Post: 01-23-2004, 07:27 AM
-
By lindleyrl in forum Ideas
Replies: 5
Last Post: 03-14-2003, 03:13 AM
-
By antti in forum General Support
Replies: 4
Last Post: 02-14-2003, 10:48 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Lenovo ThinkStation P520 Intel Xeon W-2123 3.6GHz 900W - NO RAM/ GPU/ HDD/ OS
$189.98

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Intel Xeon E5-2697 V2 LGA2011 Server CPU Processor 2.7GHz 12 Core SR19H 130W
$35.00

Dell Precision T5820 950W Workstation 4.00GHz W-2125 No RAM/ GPU/ HDD/ OS
$144.98

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS
$84.49

Intel Xeon W-2255 SRGV8 3.7GHz 10-Core LGA2066 Server CPU Processor
$199.99

Intel Xeon E5-2667V4 8-Core 3.20GHz SR2P5 CPU Processor *km
$17.99

Intel Xeon E5-2690v2 SR1A5 10-Core 3.00GHz 25MB 130W LGA2011 CPU *km
$11.99

DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11
$149.00

HP Z2 Mini G4 Workstation XEON E-2104G 16GB 512GB Quadro P600 Win 11 Pro
$319.00