Re: paste in dosemu 1.4 under Ubuntu Jaunty

aja_by_steely_dan <[email protected]>
Newsgroups org.kernel.vger.linux-msdos
Message-ID <[email protected]>
On Wed, 25 Nov 2009 16:55:43 -0500 (EST)
Bonnie Dalzell <[email protected]> wrote:

> any suggestions would be appreciated as retyping things takes more time 
> and introduces typos.


Hi

If your database has macro and if can execute command line program,
maybe you can cut and paste the text on dosemu <-> X-Window applications.

I use my favorite dos text editor on debian lenny dosemu,
and make a macro to do cut and paste without using the mouse.

Like this macro (execute on text window of my editor)

(1)"save to clip"

	Make a temporary file of the text I want to paste to the X applis
		(ex. d:\tmp\cilp.tmp = ~/tmp/clip.tmp )

	On dos command line, execute the unix.com of the dosemu
		"Unix ~/tmp/clip.sh"

clip.sh
------------------------------------------------------------------------
#!/bin/bash
iconv -f Shift_JISX0213 -t UTF-8 -c ~/tmp/clip.tmp -o ~/tmp/clip.utf
cat ~/tmp/clip.utf | tr -d "\r" | xsel -i -b > err.txt 2>&1
echo "#!/bin/bash"  > ~/tmp/killxsel
ps | grep -i ' xsel$' | sed -e "s/^ \([0-9]\+\).\+$/kill -9 \1/" >> ~/tmp/killxsel
chmod +x ~/tmp/killxsel
~/tmp/killxsel
------------------------------------------------------------------------

	And I can paste the text on gedit or Firefox or ....


(2)"insert from clip"

	copy or cut the text on gedit or Firefox or ...

	On dos command line, execute the unix.com of the dosemu
		"Unix xsel -p > d:\tmp\clip.utf"
				or
		"Unix xsel -b > d:\tmp\clip.utf"

		"Unix iconv -f UTF-8 -t Shift_JISX0213 -c ~/tmp/clip.utf -o ~/tmp/clip.tmp"

	And insert the temporary file to the text of the editor window

* xsel is a linux command

...........

Thak you for all who have developed this wonderful dosemu program,
I can still use my favorite dos text editor !!

--
- aja_by_steely_dan -
VZ Editor / DOS / DOSBox  http://aja.seesaa.net/
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.