On 03/12/2020 19:28, Daniel Drotos wrote:
I do not have too much experience with windows, but on unix, this is normal. This is the behavior of the pipe, not the app. When first program opens one end of the pipe, it will be blocked by the OS. It waits to open other end. You have to start a program which opens other end of the pipe (in opposite direction of course), then the first app will be unlocked and able to continue. uCsim will open serial files in order they are specified in the command line. If they are pipes, you have to open them in the same order by other programs.

I don't have a great experience with named pipes on Windows either. Perhaps it's possible that named pipes on Windows don't work the same way as on unix. It seems from my experimentation that named pipes work more like a file, in that there can be multiple processes interfacing with a single pipe, and that there does not necessarily need to be anything consuming data that is sent. For example, my experience with the hanging console in uCsim was the same regardless of whether or not I had a PuTTY serial terminal session open on the pipe.

By the way, I recall just now that in the past I have experienced the hanging console before when simply loading a Hex file and accompanying CDB file - nothing to do with UARTs. If I recall correctly, explicitly loading only the Hex file worked fine. I assumed then that it must have been something to do with a bad CDB file, but now I am not so sure...

I have tried ConEmu, win10 powershell and win10 cmd.exe. All of them looks to be OK in color mode and in bw (-b) mode as well.

win7 cdm.exe can not handle ansi, but with -b it works well too.

I am using Windows 7. Ansicon (https://github.com/adoxa/ansicon) does similar to ConEmu, but adds ANSI support to the command prompt natively (through DLL trickery). Works great for me, no complaints there. But without any ANSI support, black & white mode definitely *does not* work properly, at least on Win7. This is what I have always got when running with -b arg:

C:\Users\Basil>sstm8 -b
uCsim 0.6-pre56, Copyright (C) 1997 Daniel Drotos.
uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
0> ←[40m←[32mq←[40m←[32mu←[40m←[32mi←[40m←[32mt←[40m←[32m
←[0m←[40m←[97m←[?9l←[0;0'z←[!p
C:\Users\Basil>

No colours are output, but everything typed in the ucSim console spits out raw escape codes. The example above is just typing "quit" and pressing enter.

Regards,
Basil


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to