Is anyone aware of a scriptable terminal program? Requirements are that I
should be able to open the program from a script, create multiple tabs, name
the tabs, connect the tabs to a remote computer via FTP, run a login script
which reads the info coming from the remote computer and sends back the
appropriate response, and then leaves the connection open at a command line
prompt.
I can't seem to find anything which supports everything. I can't find any
way, for example, to open multiple Konsole tabs from the command line.
Thanks in advance for any suggestions.
--
gentoo-user@lists.gentoo.org mailing list
04-24-2008, 11:50 AM
Rens
Scriptable terminal program
Daniel D Jones wrote:
Is anyone aware of a scriptable terminal program? Requirements are that I
should be able to open the program from a script, create multiple tabs, name
the tabs, connect the tabs to a remote computer via FTP, run a login script
which reads the info coming from the remote computer and sends back the
appropriate response, and then leaves the connection open at a command line
prompt.
I can't seem to find anything which supports everything. I can't find any
way, for example, to open multiple Konsole tabs from the command line.
Thanks in advance for any suggestions.
You might have some luck using screen together with a custom screenrc
config file like the one below:
## Screen settings
# Disable startup message
startup_message off
# Keep screen running if terminal detaches abruptly
autodetach on
# Increase scrollback buffer
defscrollback 10000
# Set statusbar
caption always "%{bw} %n %t %{kb}| %{wb}%W %= %D %Y-%m-%d %c:%s"
# Set title bar
termcap xterm hs@:cs=E[%i%d;%dr:im=E[4h:ei=E[4l
terminfo xterm hs@:cs=E[%i%p1%d;%p2%dr:im=E[4h:ei=E[4l
# Set default shell
shell bash
## Set some environment variables:
setenv DISPLAY ':0'
## Keybindings
# Key codes can be obtained by running cat > /dev/null and typing the
key combination