Re: paste in dosemu 1.4 under Ubuntu Jaunty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Nov 2009 16:55:43 -0500 (EST)
Bonnie Dalzell <bdalzell@xxxxxxx> 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/
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux