Re: lag while printing and serial redirect
Hello! 2016-12-25 17:58 GMT+01:00 Stas Sergeev: >>> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
25.12.2016 17:03, Jakub Klawiter пишет: Hello! 2016-12-21 22:22 GMT+01:00 Stas Sergeev: 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. -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
20.12.2016 23:37, Jakub Klawiter пишет: Hello! 2016-12-20 1:19 GMT+01:00 Stas Sergeev: 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. -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
Hello! 2016-12-20 1:19 GMT+01:00 Stas Sergeev: >>> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
19.12.2016 16:53, Jakub Klawiter пишет: Hello! 2016-12-19 14:34 GMT+01:00 Jakub Klawiter: 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). -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
19.12.2016 16:34, Jakub Klawiter пишет: Hello! 2016-12-15 23:18 GMT+01:00 Stas Sergeev: 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/020.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. -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
Hello! 2016-12-19 14:34 GMT+01:00 Jakub Klawiter: > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
Hello! 2016-12-15 23:18 GMT+01:00 Stas Sergeev: > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
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. -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
Hello! 2016-12-15 22:57 GMT+01:00 Stas Sergeev: >> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
15.12.2016 19:18, Jakub Klawiter пишет: Hello! 2016-12-14 21:00 GMT+01:00 Stas Sergeev: 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. -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
Hello! 2016-12-14 21:00 GMT+01:00 Stas Sergeev: > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
Hello! 2016-12-13 22:13 GMT+01:00 Stas Sergeev: >> $_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 like11 Once again thank you for the HINT! :) -- Pozdrawiam, Jakub. Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
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. -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: lag while printing and serial redirect
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 -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html