All of lore.kernel.org
 help / color / mirror / Atom feed
* lag while printing and serial redirect
@ 2016-12-13 13:26 Jakub Klawiter
  2016-12-13 17:04 ` Frank Cox
  2016-12-13 21:13 ` Stas Sergeev
  0 siblings, 2 replies; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-13 13:26 UTC (permalink / raw)
  To: linux-msdos

Hello!

i've got dosemu installed on ubuntu box. I've OKI dot matrix printer
connected to it via USB2parallel interface.

Now if i'll try e.g.

$ echo test | lpr -l
the printer starts to print immediately.

But from dosemu if i'll try:

C:>echo test > lpt1:

it's working but there is 3-4 seconds lag before it starts to print.
Where can i look to fix it?

my dosemu.conf part:

$_lpt1 = "lpr -l"
$_printer_timeout = (10)


The second thing:

i like to have COM1 (serial) port transmission redirected to reglar
file. I tried something like:

$_com1 = "/tmp/com1.txt"

but it's not working. Is it possible to catch serial transmission to a file?

-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-13 13:26 lag while printing and serial redirect Jakub Klawiter
@ 2016-12-13 17:04 ` Frank Cox
  2016-12-13 21:13 ` Stas Sergeev
  1 sibling, 0 replies; 19+ messages in thread
From: Frank Cox @ 2016-12-13 17:04 UTC (permalink / raw)
  To: Jakub Klawiter; +Cc: linux-msdos

On Tue, 13 Dec 2016 14:26:34 +0100
Jakub Klawiter wrote:

> $ echo test | lpr -l
> the printer starts to print immediately.
> 
> But from dosemu if i'll try:
> 
> C:>echo test > lpt1:
> 
> it's working but there is 3-4 seconds lag before it starts to print.
> Where can i look to fix it?

That's the way that lpr works under dosemu.  It's my understanding that the objective is to print a whole page at a time because that's how modern printers work.  Since most dos programs don't send a page end/page break, dosemu just waits for a few seconds to see if anything more is coming; if not the page is assumed complete and send it to the printer.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-13 13:26 lag while printing and serial redirect Jakub Klawiter
  2016-12-13 17:04 ` Frank Cox
@ 2016-12-13 21:13 ` Stas Sergeev
  2016-12-14 14:32   ` Jakub Klawiter
  1 sibling, 1 reply; 19+ messages in thread
From: Stas Sergeev @ 2016-12-13 21:13 UTC (permalink / raw)
  To: Jakub Klawiter, linux-msdos

13.12.2016 16:26, Jakub Klawiter пишет:
> Hello!
>
> i've got dosemu installed on ubuntu box. I've OKI dot matrix printer
> connected to it via USB2parallel interface.
>
> Now if i'll try e.g.
>
> $ echo test | lpr -l
> the printer starts to print immediately.
>
> But from dosemu if i'll try:
>
> C:>echo test > lpt1:
>
> it's working but there is 3-4 seconds lag before it starts to print.
> Where can i look to fix it?
>
> my dosemu.conf part:
>
> $_lpt1 = "lpr -l"
> $_printer_timeout = (10)
So why dont you reduce the timeout then?

> The second thing:
>
> i like to have COM1 (serial) port transmission redirected to reglar
> file. I tried something like:
>
> $_com1 = "/tmp/com1.txt"
>
> but it's not working. Is it possible to catch serial transmission to a file?
Yes, but not as simple. You need to establish the pty link
with 'socat' program. But this feature is quite simple to add.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-13 21:13 ` Stas Sergeev
@ 2016-12-14 14:32   ` Jakub Klawiter
  2016-12-14 20:00     ` Stas Sergeev
  0 siblings, 1 reply; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-14 14:32 UTC (permalink / raw)
  To: linux-msdos

Hello!

2016-12-13 22:13 GMT+01:00 Stas Sergeev <stsp@list.ru>:

>> $_lpt1 = "lpr -l"
>> $_printer_timeout = (10)
> So why dont you reduce the timeout then?
Hmm… i was sure that timeout is about something else rather about
existance / being ready to print… i've changed it to 5 it's better i
think. Tried also 1 but the print was corrupted this way :(


> Yes, but not as simple. You need to establish the pty link
> with 'socat' program. But this feature is quite simple to add.
Thank you very much!

For future users what I did is:

$ cat run-raporty.sh
#!/bin/bash

socat -d -d -u pty,group=dialout,mode=660,link=/tmp/ttyCOM1,raw,echo=0
create:/tmp/ttyCOM1.txt &
SOCAT_PID=$!

dosemu -X -f "/home/cartoon/skrypty/dosemu-raporty.conf"  -E r.bat

kill -9 $SOCAT_PID
rm /tmp/ttyCOM1


and it's working just as I like!!!!11 Once again thank you for the HINT! :)


-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-14 14:32   ` Jakub Klawiter
@ 2016-12-14 20:00     ` Stas Sergeev
  2016-12-15 16:18       ` Jakub Klawiter
  0 siblings, 1 reply; 19+ messages in thread
From: Stas Sergeev @ 2016-12-14 20:00 UTC (permalink / raw)
  To: Jakub Klawiter, linux-msdos

14.12.2016 17:32, Jakub Klawiter пишет:
> Hello!
>
> 2016-12-13 22:13 GMT+01:00 Stas Sergeev <stsp@list.ru>:
>
>>> $_lpt1 = "lpr -l"
>>> $_printer_timeout = (10)
>> So why dont you reduce the timeout then?
> Hmm… i was sure that timeout is about something else rather about
> existance / being ready to print…
Perhaps it would be better to call something like "$_printout_delay",
but its probably too late to rename.

>   i've changed it to 5 it's better i
> think. Tried also 1 but the print was corrupted this way :(
>
>
>> Yes, but not as simple. You need to establish the pty link
>> with 'socat' program. But this feature is quite simple to add.
> Thank you very much!
>
> For future users what I did is:
The future users will unlikely to need this, as I've added such
capability to git.

> $ cat run-raporty.sh
> #!/bin/bash
>
> socat -d -d -u pty,group=dialout,mode=660,link=/tmp/ttyCOM1,raw,echo=0
> create:/tmp/ttyCOM1.txt &
> SOCAT_PID=$!
>
> dosemu -X -f "/home/cartoon/skrypty/dosemu-raporty.conf"  -E r.bat
Are you sure you need '-X' for running just the bat file?
Try -dumb or -td or -t depending on dosemu version.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-14 20:00     ` Stas Sergeev
@ 2016-12-15 16:18       ` Jakub Klawiter
  2016-12-15 21:57         ` Stas Sergeev
  0 siblings, 1 reply; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-15 16:18 UTC (permalink / raw)
  To: Stas Sergeev; +Cc: linux-msdos

Hello!


2016-12-14 21:00 GMT+01:00 Stas Sergeev <stsp@list.ru>:
> 14.12.2016 17:32, Jakub Klawiter пишет:

>> Hmm… i was sure that timeout is about something else rather about
>> existance / being ready to print…
> Perhaps it would be better to call something like "$_printout_delay",
> but its probably too late to rename.
it is also not delay, i've changed it from 10 to 5, and the lag is
smaler but not by half. Anyway i think I can live with that.


>> For future users what I did is:
> The future users will unlikely to need this, as I've added such
> capability to git.
gr8 :)

>> dosemu -X -f "/home/cartoon/skrypty/dosemu-raporty.conf"  -E r.bat
> Are you sure you need '-X' for running just the bat file?
> Try -dumb or -td or -t depending on dosemu version.

I have dosemu-1.4.0.7 or 1.4.0.8 ... no idea why but ubuntu repo says
it's 1.4.0.7 and dosemu that it's 1.4.0.8 :> Anyway it's 1.4 :D

It's not "just a bat". I mean it is starting executable programm which
need terminal to be 80x24.
the batch file is now rather simple (just cd to working directory, and
exe with it's parameters) but i'll leave it like this because... i did
it this way under DOS 6.22 than  windows 95 in other shop under
FreeDos-0.9, than 1.0 (yes i had at work real 386DX in XXI century :D)

I like to have it as large as possible, with -X i can set $_X_font =
"vga12x30" it's working.

Of course I can change font in my terminal, and set it to start 80x24
by default but... i don't want large fonts in every terminal I start.
Also I want to have is as simple as possible because i'm not only
person here who is using it. :)

-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-15 16:18       ` Jakub Klawiter
@ 2016-12-15 21:57         ` Stas Sergeev
  2016-12-15 22:10           ` Jakub Klawiter
  0 siblings, 1 reply; 19+ messages in thread
From: Stas Sergeev @ 2016-12-15 21:57 UTC (permalink / raw)
  To: Jakub Klawiter; +Cc: linux-msdos

15.12.2016 19:18, Jakub Klawiter пишет:
> Hello!
>
>
> 2016-12-14 21:00 GMT+01:00 Stas Sergeev <stsp@list.ru>:
>> 14.12.2016 17:32, Jakub Klawiter пишет:
>>> Hmm… i was sure that timeout is about something else rather about
>>> existance / being ready to print…
>> Perhaps it would be better to call something like "$_printout_delay",
>> but its probably too late to rename.
> it is also not delay, i've changed it from 10 to 5, and the lag is
> smaler but not by half.
This is a delay since the print data xfer ended, not started.
So the total_time_before_printout_starts=data_xfer_time+printout_delay.
If data_xfer_time is large enough, then reducing printout_delay
twice will result in some srink of total time but not twice.
Maybe you can reduce also the data_xfer_time, try
speed 0
in the beginning of your printing bat file.

>>> dosemu -X -f "/home/cartoon/skrypty/dosemu-raporty.conf"  -E r.bat
>> Are you sure you need '-X' for running just the bat file?
>> Try -dumb or -td or -t depending on dosemu version.
> I have dosemu-1.4.0.7 or 1.4.0.8 ... no idea why but ubuntu repo says
> it's 1.4.0.7 and dosemu that it's 1.4.0.8 :> Anyway it's 1.4 :D
This is the last "stable" version, but its very very old unfortunately.

> It's not "just a bat". I mean it is starting executable programm which
> need terminal to be 80x24.
> the batch file is now rather simple (just cd to working directory, and
> exe with it's parameters) but i'll leave it like this because... i did
> it this way under DOS 6.22 than  windows 95 in other shop under
> FreeDos-0.9, than 1.0 (yes i had at work real 386DX in XXI century :D)
>
> I like to have it as large as possible, with -X i can set $_X_font =
> "vga12x30" it's working.
>
> Of course I can change font in my terminal, and set it to start 80x24
> by default but... i don't want large fonts in every terminal I start.
You probably want some command that can enlarge and reduce
the font size on fly, that can work on various terminal emulators.
There seems to be no such command, even though google shows
there is a demand for it.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-15 21:57         ` Stas Sergeev
@ 2016-12-15 22:10           ` Jakub Klawiter
  2016-12-15 22:18             ` Stas Sergeev
  0 siblings, 1 reply; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-15 22:10 UTC (permalink / raw)
  To: Stas Sergeev, linux-msdos

Hello!


2016-12-15 22:57 GMT+01:00 Stas Sergeev <stsp@list.ru>:

>> it is also not delay, i've changed it from 10 to 5, and the lag is
>> smaler but not by half.
>
> This is a delay since the print data xfer ended, not started.
> So the total_time_before_printout_starts=data_xfer_time+printout_delay.
> If data_xfer_time is large enough, then reducing printout_delay
> twice will result in some srink of total time but not twice.
> Maybe you can reduce also the data_xfer_time, try
> speed 0
> in the beginning of your printing bat file.
OK i'll try on monday i mean next time i'll be at work.


>>>> dosemu -X -f "/home/cartoon/skrypty/dosemu-raporty.conf"  -E r.bat
>>>
>>> Are you sure you need '-X' for running just the bat file?
>>> Try -dumb or -td or -t depending on dosemu version.
>>
>> I have dosemu-1.4.0.7 or 1.4.0.8 ... no idea why but ubuntu repo says
>> it's 1.4.0.7 and dosemu that it's 1.4.0.8 :> Anyway it's 1.4 :D
>
> This is the last "stable" version, but its very very old unfortunately.
Ok it's old but working. At work I prefer to use old and stable
release than new and experimental. Also i don't want to add any non
standard repository there.

>> It's not "just a bat". I mean it is starting executable programm which
>> need terminal to be 80x24.
>> the batch file is now rather simple (just cd to working directory, and
>> exe with it's parameters) but i'll leave it like this because... i did
>> it this way under DOS 6.22 than  windows 95 in other shop under
>> FreeDos-0.9, than 1.0 (yes i had at work real 386DX in XXI century :D)
>>
>> I like to have it as large as possible, with -X i can set $_X_font =
>> "vga12x30" it's working.
>>
>> Of course I can change font in my terminal, and set it to start 80x24
>> by default but... i don't want large fonts in every terminal I start.
>
> You probably want some command that can enlarge and reduce
> the font size on fly, that can work on various terminal emulators.
> There seems to be no such command, even though google shows
> there is a demand for it.
I can have few profiles in gnome-terminal but did not find any way to
change profile from desktop file i'm starting all that stuff. BTW
what's wrong with -X. Why should I try to not use it? Anyway of course
i will try because it something between me and computer. It have to
know *who* is teh owner ;-)


-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-15 22:10           ` Jakub Klawiter
@ 2016-12-15 22:18             ` Stas Sergeev
  2016-12-19 13:34               ` Jakub Klawiter
  0 siblings, 1 reply; 19+ messages in thread
From: Stas Sergeev @ 2016-12-15 22:18 UTC (permalink / raw)
  To: Jakub Klawiter, linux-msdos

16.12.2016 01:10, Jakub Klawiter пишет:
>>> It's not "just a bat". I mean it is starting executable programm which
>>> need terminal to be 80x24.
>>> the batch file is now rather simple (just cd to working directory, and
>>> exe with it's parameters) but i'll leave it like this because... i did
>>> it this way under DOS 6.22 than  windows 95 in other shop under
>>> FreeDos-0.9, than 1.0 (yes i had at work real 386DX in XXI century :D)
>>>
>>> I like to have it as large as possible, with -X i can set $_X_font =
>>> "vga12x30" it's working.
>>>
>>> Of course I can change font in my terminal, and set it to start 80x24
>>> by default but... i don't want large fonts in every terminal I start.
>> You probably want some command that can enlarge and reduce
>> the font size on fly, that can work on various terminal emulators.
>> There seems to be no such command, even though google shows
>> there is a demand for it.
> I can have few profiles in gnome-terminal but did not find any way to
> change profile from desktop file i'm starting all that stuff. BTW
> what's wrong with -X. Why should I try to not use it? Anyway of course
There is absolutely nothing wrong about it except that it is
just usually not needed for text-mode non-interactive stuff,
and the advantage of not using it is that you'll have all the
text still on your terminal after dosemu closes. The output
of your .bat can be redirected to the file with simple bash
redirection etc - this is just a better integration with your
linux environment, but nothing very important.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-15 22:18             ` Stas Sergeev
@ 2016-12-19 13:34               ` Jakub Klawiter
  2016-12-19 13:53                 ` Jakub Klawiter
  2016-12-20  0:17                 ` Stas Sergeev
  0 siblings, 2 replies; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-19 13:34 UTC (permalink / raw)
  To: Stas Sergeev; +Cc: linux-msdos

Hello!

2016-12-15 23:18 GMT+01:00 Stas Sergeev <stsp@list.ru>:


> There is absolutely nothing wrong about it except that it is
> just usually not needed for text-mode non-interactive stuff,
> and the advantage of not using it is that you'll have all the
> text still on your terminal after dosemu closes. The output
> of your .bat can be redirected to the file with simple bash
> redirection etc - this is just a better integration with your
> linux environment, but nothing very important.
leaving any output in terminal is not important here because my batch
file ends with exitemu ;-)

Anyway it is possible to use it without -X and change font/wndow to
large one. My current .desktop file looks like:

Terminal=false
Icon[pl]=gnome-panel-launcher
Exec=gnome-terminal --profile TEST --hide-menubar --command
"/home/cartoon/skrypty/run-kantor-kasa.sh"

it's even better (larger) only problem that colors are little bit flat
this way... too flat :(
https://goo.gl/photos/WLLRvbkVGCkg9tyA6 (in front -X, back -dt) Is it
possible to change palette somewhere as it doesn't depend on my
terminal palette.
I was looking in the /etc/dosemu/ but find nothing about color palette
(except term_color which can be used to switch it to b/w :D)

-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-19 13:34               ` Jakub Klawiter
@ 2016-12-19 13:53                 ` Jakub Klawiter
  2016-12-20  0:19                   ` Stas Sergeev
  2016-12-20  0:17                 ` Stas Sergeev
  1 sibling, 1 reply; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-19 13:53 UTC (permalink / raw)
  To: linux-msdos

Hello!

2016-12-19 14:34 GMT+01:00 Jakub Klawiter <jklawiter@gmail.com>:

> it's even better (larger) only problem that colors are little bit flat
> this way... too flat :(
> https://goo.gl/photos/WLLRvbkVGCkg9tyA6 (in front -X, back -dt) Is it
> possible to change palette somewhere as it doesn't depend on my
> terminal palette.

Ok i fount it in other place in my terminal. everything is great right
now. Thank you all for all your help!

-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-19 13:34               ` Jakub Klawiter
  2016-12-19 13:53                 ` Jakub Klawiter
@ 2016-12-20  0:17                 ` Stas Sergeev
  1 sibling, 0 replies; 19+ messages in thread
From: Stas Sergeev @ 2016-12-20  0:17 UTC (permalink / raw)
  To: Jakub Klawiter; +Cc: linux-msdos

19.12.2016 16:34, Jakub Klawiter пишет:
> Hello!
>
> 2016-12-15 23:18 GMT+01:00 Stas Sergeev <stsp@list.ru>:
>
>
>> There is absolutely nothing wrong about it except that it is
>> just usually not needed for text-mode non-interactive stuff,
>> and the advantage of not using it is that you'll have all the
>> text still on your terminal after dosemu closes. The output
>> of your .bat can be redirected to the file with simple bash
>> redirection etc - this is just a better integration with your
>> linux environment, but nothing very important.
> leaving any output in terminal is not important here because my batch
> file ends with exitemu ;-)
If you use '-dumb' or '-td' (depending on version), then the
DOS output will stay on your terminal even after exitemu.
Unfortunately is seems dumb is not an option for you as you
are using colors and ascii drawing.

> Anyway it is possible to use it without -X and change font/wndow to
> large one. My current .desktop file looks like:
>
> Terminal=false
> Icon[pl]=gnome-panel-launcher
> Exec=gnome-terminal --profile TEST --hide-menubar --command
> "/home/cartoon/skrypty/run-kantor-kasa.sh"
>
> it's even better (larger) only problem that colors are little bit flat
> this way... too flat :(
> https://goo.gl/photos/WLLRvbkVGCkg9tyA6 (in front -X, back -dt) Is it
> possible to change palette somewhere as it doesn't depend on my
> terminal palette.
This is a work in progress:
http://lists.jedsoft.org/lists/slang-users/2015/0000020.html
They added such support into slang and mc, but its very new.
For example I have fedora-24 and it doesn't yet contain these
features.
You can fill the ticket in dosemu tracker and maybe someone
will find the time to look into this sometime in the future.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-19 13:53                 ` Jakub Klawiter
@ 2016-12-20  0:19                   ` Stas Sergeev
  2016-12-20 20:37                     ` Jakub Klawiter
  0 siblings, 1 reply; 19+ messages in thread
From: Stas Sergeev @ 2016-12-20  0:19 UTC (permalink / raw)
  To: Jakub Klawiter, linux-msdos

19.12.2016 16:53, Jakub Klawiter пишет:
> Hello!
>
> 2016-12-19 14:34 GMT+01:00 Jakub Klawiter <jklawiter@gmail.com>:
>
>> it's even better (larger) only problem that colors are little bit flat
>> this way... too flat :(
>> https://goo.gl/photos/WLLRvbkVGCkg9tyA6 (in front -X, back -dt) Is it
>> possible to change palette somewhere as it doesn't depend on my
>> terminal palette.
> Ok i fount it in other place in my terminal. everything is great right
> now. Thank you all for all your help!
Maybe you've found the palette config, but to make
the output independent of any config, one needs to add
the truecolor support (which is very new in slang library).

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-20  0:19                   ` Stas Sergeev
@ 2016-12-20 20:37                     ` Jakub Klawiter
  2016-12-21 21:22                       ` Stas Sergeev
  0 siblings, 1 reply; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-20 20:37 UTC (permalink / raw)
  To: Stas Sergeev; +Cc: linux-msdos

Hello!

2016-12-20 1:19 GMT+01:00 Stas Sergeev <stsp@list.ru>:
>>> it's even better (larger) only problem that colors are little bit flat
>>> this way... too flat :(
>>> https://goo.gl/photos/WLLRvbkVGCkg9tyA6 (in front -X, back -dt) Is it
>>> possible to change palette somewhere as it doesn't depend on my
>>> terminal palette.
>>
>> Ok i fount it in other place in my terminal. everything is great right
>> now. Thank you all for all your help!
>
> Maybe you've found the palette config, but to make
> the output independent of any config, one needs to add
> the truecolor support (which is very new in slang library).
It's good enough for me ;-)

Anyway i've temporary switched back to -X because of kbd problems.

1. My DOS program needs decimal point instead of decimal coma on
keypad. It should be easy to remap it, as it is used in wild countries
;-)
2. I also need there ctrl+enter to work „DOS way”. And I really have
no idea what code sends ctrl+enter in DOS, what I know that it is not
working when started under dosemu -dt

Anyway i'll probably try to fight with it after new year.


-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-20 20:37                     ` Jakub Klawiter
@ 2016-12-21 21:22                       ` Stas Sergeev
  2016-12-25 14:03                         ` Jakub Klawiter
  0 siblings, 1 reply; 19+ messages in thread
From: Stas Sergeev @ 2016-12-21 21:22 UTC (permalink / raw)
  To: Jakub Klawiter; +Cc: linux-msdos

20.12.2016 23:37, Jakub Klawiter пишет:
> Hello!
>
> 2016-12-20 1:19 GMT+01:00 Stas Sergeev <stsp@list.ru>:
>>>> it's even better (larger) only problem that colors are little bit flat
>>>> this way... too flat :(
>>>> https://goo.gl/photos/WLLRvbkVGCkg9tyA6 (in front -X, back -dt) Is it
>>>> possible to change palette somewhere as it doesn't depend on my
>>>> terminal palette.
>>> Ok i fount it in other place in my terminal. everything is great right
>>> now. Thank you all for all your help!
>> Maybe you've found the palette config, but to make
>> the output independent of any config, one needs to add
>> the truecolor support (which is very new in slang library).
> It's good enough for me ;-)
>
> Anyway i've temporary switched back to -X because of kbd problems.
>
> 1. My DOS program needs decimal point instead of decimal coma on
> keypad. It should be easy to remap it, as it is used in wild countries
> ;-)
> 2. I also need there ctrl+enter to work „DOS way”. And I really have
> no idea what code sends ctrl+enter in DOS, what I know that it is not
> working when started under dosemu -dt
You mean -t.

> Anyway i'll probably try to fight with it after new year.
Key combos may be a problem, yes.
You can run "cat" and see what your key combos produce.
For example "Enter" and "Ctrl-Enter" produce the same newline,
which means making it to work the dos way is not trivial.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-21 21:22                       ` Stas Sergeev
@ 2016-12-25 14:03                         ` Jakub Klawiter
  2016-12-25 16:58                           ` Stas Sergeev
  0 siblings, 1 reply; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-25 14:03 UTC (permalink / raw)
  To: Stas Sergeev; +Cc: linux-msdos

Hello!

2016-12-21 22:22 GMT+01:00 Stas Sergeev <stsp@list.ru>:

>> 1. My DOS program needs decimal point instead of decimal coma on
>> keypad. It should be easy to remap it, as it is used in wild countries
>> ;-)
>> 2. I also need there ctrl+enter to work „DOS way”. And I really have
>> no idea what code sends ctrl+enter in DOS, what I know that it is not
>> working when started under dosemu -dt
> You mean -t.
I've been using -dt but ok … it looks the same so probably -d (in my
dosemu) does nothing ;-)


>> Anyway i'll probably try to fight with it after new year.
> Key combos may be a problem, yes.
> You can run "cat" and see what your key combos produce.
> For example "Enter" and "Ctrl-Enter" produce the same newline,
> which means making it to work the dos way is not trivial.
Yes in linux terminal both produces \x0a

anyway same dos exe i'm using is working fine with dosemu started with
-X so maybe it is possible. I'll try it one day. Until then i'll just
start it with dosemu -X



-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-25 14:03                         ` Jakub Klawiter
@ 2016-12-25 16:58                           ` Stas Sergeev
  2016-12-27 22:44                             ` Jakub Klawiter
  0 siblings, 1 reply; 19+ messages in thread
From: Stas Sergeev @ 2016-12-25 16:58 UTC (permalink / raw)
  To: Jakub Klawiter; +Cc: linux-msdos

25.12.2016 17:03, Jakub Klawiter пишет:
> Hello!
>
> 2016-12-21 22:22 GMT+01:00 Stas Sergeev <stsp@list.ru>:
>
>>> 1. My DOS program needs decimal point instead of decimal coma on
>>> keypad. It should be easy to remap it, as it is used in wild countries
>>> ;-)
>>> 2. I also need there ctrl+enter to work „DOS way”. And I really have
>>> no idea what code sends ctrl+enter in DOS, what I know that it is not
>>> working when started under dosemu -dt
>> You mean -t.
> I've been using -dt but ok … it looks the same so probably -d (in my
> dosemu) does nothing ;-)
I never told  you to use -d. I told either -t or -td, but
not -d or -dt.

>>> Anyway i'll probably try to fight with it after new year.
>> Key combos may be a problem, yes.
>> You can run "cat" and see what your key combos produce.
>> For example "Enter" and "Ctrl-Enter" produce the same newline,
>> which means making it to work the dos way is not trivial.
> Yes in linux terminal both produces \x0a
>
> anyway same dos exe i'm using is working fine with dosemu started with
> -X so maybe it is possible.
Its certainly possible with -X, the problem exists only
with -t. So after you outlined it, I withdrawn my suggestion
about -t. -t is good to just run a bat file, which I thought
your use-case is. For interactive stuff it doesn't work well.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-25 16:58                           ` Stas Sergeev
@ 2016-12-27 22:44                             ` Jakub Klawiter
  2016-12-28 20:04                               ` Stas Sergeev
  0 siblings, 1 reply; 19+ messages in thread
From: Jakub Klawiter @ 2016-12-27 22:44 UTC (permalink / raw)
  To: Stas Sergeev, linux-msdos

Hello!

2016-12-25 17:58 GMT+01:00 Stas Sergeev <stsp@list.ru>:

>>> You mean -t.
>> I've been using -dt but ok … it looks the same so probably -d (in my
>> dosemu) does nothing ;-)
> I never told  you to use -d. I told either -t or -td, but
> not -d or -dt.
:D I just wanted to say that -d does nothing so -td works same as -t.
at the end -d -t == -t -d == -td ==-dt isn't it?

>> anyway same dos exe i'm using is working fine with dosemu started with
>> -X so maybe it is possible.
> Its certainly possible with -X, the problem exists only
> with -t. So after you outlined it, I withdrawn my suggestion
> about -t. -t is good to just run a bat file, which I thought
> your use-case is. For interactive stuff it doesn't work well.

ok, once again thank you! :)

and Happy New year All! :)

-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: lag while printing and serial redirect
  2016-12-27 22:44                             ` Jakub Klawiter
@ 2016-12-28 20:04                               ` Stas Sergeev
  0 siblings, 0 replies; 19+ messages in thread
From: Stas Sergeev @ 2016-12-28 20:04 UTC (permalink / raw)
  To: Jakub Klawiter, linux-msdos

28.12.2016 01:44, Jakub Klawiter пишет:
> Hello!
>
> 2016-12-25 17:58 GMT+01:00 Stas Sergeev <stsp@list.ru>:
>
>>>> You mean -t.
>>> I've been using -dt but ok … it looks the same so probably -d (in my
>>> dosemu) does nothing ;-)
>> I never told  you to use -d. I told either -t or -td, but
>> not -d or -dt.
> :D I just wanted to say that -d does nothing so -td works same as -t.
> at the end -d -t == -t -d == -td ==-dt isn't it?
No, -t takes an optional terminal type argument, and 'd'
means "dummy" type. This is a new syntax however, and
if it hurts someone, it is not too late to change. It is however
still covered with the "-dummy" switch.

>>> anyway same dos exe i'm using is working fine with dosemu started with
>>> -X so maybe it is possible.
>> Its certainly possible with -X, the problem exists only
>> with -t. So after you outlined it, I withdrawn my suggestion
>> about -t. -t is good to just run a bat file, which I thought
>> your use-case is. For interactive stuff it doesn't work well.
> ok, once again thank you! :)
>
> and Happy New year All! :)
Indeed, happy new year to all DOS fans out there. :)

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-12-28 20:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-13 13:26 lag while printing and serial redirect Jakub Klawiter
2016-12-13 17:04 ` Frank Cox
2016-12-13 21:13 ` Stas Sergeev
2016-12-14 14:32   ` Jakub Klawiter
2016-12-14 20:00     ` Stas Sergeev
2016-12-15 16:18       ` Jakub Klawiter
2016-12-15 21:57         ` Stas Sergeev
2016-12-15 22:10           ` Jakub Klawiter
2016-12-15 22:18             ` Stas Sergeev
2016-12-19 13:34               ` Jakub Klawiter
2016-12-19 13:53                 ` Jakub Klawiter
2016-12-20  0:19                   ` Stas Sergeev
2016-12-20 20:37                     ` Jakub Klawiter
2016-12-21 21:22                       ` Stas Sergeev
2016-12-25 14:03                         ` Jakub Klawiter
2016-12-25 16:58                           ` Stas Sergeev
2016-12-27 22:44                             ` Jakub Klawiter
2016-12-28 20:04                               ` Stas Sergeev
2016-12-20  0:17                 ` Stas Sergeev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.