From: "Julieto Agbay" <jcagbay@icbnsys.com>
To: linux-msdos@vger.kernel.org
Subject: Re: Using Screen
Date: Fri, 16 Jan 2009 13:45:50 +0800 [thread overview]
Message-ID: <a9dd9d150901152145j764c1600m712a290bb67e4e9d@mail.gmail.com> (raw)
In-Reply-To: <op.untbgutoqw3wu1@titan>
Thanks Andrew for your notes. I get hint from your script about the
terminal environment. I guess this is needed. I run this command and
the keyboard arrow up/down key is now captured correctly when running
DOSEMU.
[me@host ~]$ screen -U -T vt100
My test is continuing.
rgds,
Yul
On Fri, Jan 16, 2009 at 3:08 AM, Andrew Brooks <arb@sat.dundee.ac.uk> wrote:
> On Thu, 15 Jan 2009 18:38:01 -0000, Alain M. <alainm@pobox.com> wrote:
>>
>> Do you have instructions about using screen that you can share?
>
> Below are my notes which I hope you find helpful. The remote viewer
> logs in with ssh and runs "start_viewer". On the dos PC you have
> already started "start_screen" which calls "start_dos".
>
>> If it is still needed, I can digg info about installing DOS's fonts
>> in the client machine. it should solve the box-drawing problem.
>
> That would be useful, thanks.
>
> Andrew
>
>
> On the "viewer" PC
>
> To view a dosemu session properly you need to open a terminal window
> with the correct character encoding. eg. Gnome Terminal using IBM850.
> Although the example below says UTF-8 for some reason.
>
> DOSView.desktop:
> [Desktop Entry]
> Version=1.0
> Encoding=UTF-8
> Name=DOSView
> Type=Application
> Exec=ssh -t user@dospc /bin/bash -lc ./start_viewer
> TryExec=
> X-GNOME-DocPath=
> Terminal=true
> Name[en_US]=DOSView
> GenericName[en_US]=
> Comment[en_US]=
> GenericName=
> Comment=
>
> Gnome terminal preferences are stored in ~/.gconf/apps/gnome-terminal
>
> However Gnome terminal sucks up too much CPU time so xterm is better.
> But I haven't yet found a way of getting the correct character encoding
> in xterm.
>
>
> On the "server" PC (let's call it dospc)
>
> The start_viewer script:
>
> ---------------------------------------------------------
> #!/bin/sh
>
> numscreens=`ls ~user/tmp/*.drive | wc -l`
> if [ 0$numscreens -ne 1 ]; then
> echo There is not a single screen session for attachment
> echo Is start_screen running?
> exit 1
> fi
>
> session=`basename ~opr/tmp/*.drive`
> #screen -x $session
> screen -rx
> --------------------------------------------------------
>
>
> The start_screen script:
> --------------------------------------------------------
> #!/bin/sh
> # default terminal type is "linux" but use "vt100" because the
> # line-drawing characters work better
> export TERM=vt100
> screen -S drive -s ./start_dos #-T ansi
> --------------------------------------------------------
>
>
> The start_dos script:
> -------------------------------------------------------
> #!/bin/sh
> # 1.00 arb Thu Mar 3 12:12:44 GMT 2005
> # Limit processes to 128MB of virtual memory (limit).
> # Run dosemu in super-user mode in order to access hardware (-s).
> # Automatically restart dosemu (after 30 seconds) if it fails.
> vm_limit=131072 # KB
> TZ=UTC0; export TZ # Timezone without daylight savings
> ulimit -v $vm_limit
> while true; do
> dosemu -s
> echo Restarting dosemu in 30 seconds
> echo Press CTRL-C to abort
> sleep 30
> done
> -------------------------------------------------------
>
>
> The .screenrc config file has the following additions:
>
> multiuser on # allow multiple users
> defc1 off # allow 8-bit chars ("on" uses top bit set chars as control funcs)
> vbell off # use audible bell
>
>
> The dosemu.conf config file changes:
> $_term_char_set = "ibm"
>
>
> When viewing using screen you can use ctrl-a then d to detach the
> session and reconnect to it later.
>
>
> -------------------------------------------------------
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2009-01-16 5:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a9dd9d150901141542n1909a13em8937c869ce12b79b@mail.gmail.com>
2009-01-14 23:44 ` Using Screen Julieto Agbay
2009-01-15 2:12 ` C.J. Adams-Collier
2009-01-15 16:37 ` Alain M.
2009-01-15 17:11 ` Andrew Brooks
[not found] ` <496F8289.4040909@pobox.com>
2009-01-15 19:08 ` Andrew Brooks
2009-01-16 5:45 ` Julieto Agbay [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a9dd9d150901152145j764c1600m712a290bb67e4e9d@mail.gmail.com \
--to=jcagbay@icbnsys.com \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox