-
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

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY
$10.00

MTC8C1084S1SC56BD1 Micron 16GB DDR5 1Rx8 PC5-5600B 5600Mhz SO-DIMM Memory
$149.99

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99

G.SKILL FLARE X5 64GB (2 x 32GB) 6000 MT/s DDR5 (AMD EXPO + INTEL XMP) *CL30*
$785.00

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$66.00

MINT Micron Cisco 32GB PC4-2400T DDR4 2Rx4 RDIMM RAM MTA36ASF4G72PZ-2G3 LOT
$159.99

Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1
$399.00

Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM
$85.00