Re: [Freedos-devel] set device info

2023-07-31 Thread Paul Edwards via Freedos-devel
Hi Bret. Thanks so much for that information, which underpins the entire issue. I had indeed managed to stuff up the test. After fixing that: https://sourceforge.net/p/pdos/gitcode/ci/ede042ced72fd2482a4ea1c8f79a80dfe2b69561/ by changing: mov word ptr [info], dx to: mov word ptr [bx], dx Th

Re: [Freedos-devel] set device info

2023-07-31 Thread Bret Johnson via Freedos-devel
> So (unless I stuffed the test up), it's not just me that says > that stdin isn't stdin - Freedos get device info returns 0. > So freedos reports that stdin is not stdin, and I took its > word for it in my test of set device info. I just tested FreeDOS 1.2 and 1.3 and a couple of other versions o

Re: [Freedos-devel] set device info

2023-07-30 Thread Paul Edwards via Freedos-devel
Hi guys. Thanks for the response, replying to the various points together. > 0standard input > basically you are telling the STdiN device 0, that is no longer standard input. Yes, which is why in my original message I said: >> Using 1 or 81h gives the same result. ie I tried two ways to

Re: [Freedos-devel] set device info

2023-07-30 Thread Bret Johnson via Freedos-devel
> mov ah, 044h > mov al, 01h > mov bx, 0 > ;mov dx, 081h > mov dx, 0h > int 021h > mov ah, 04ch > int 021h Looking at this again, I think I see what your problem might be. You have commented out the "mov dx, 081h" which makes me think you are trying to do something with a hard drive (which is

Re: [Freedos-devel] set device info

2023-07-30 Thread Bret Johnson via Freedos-devel
Tom is absolutely correct. You are trying to change the attributes of Device 0 (STDIN) to 0 (so that is it is not really even a device any more). After that, for all practical purposes, you have disabled the computer. Apparently, FreeDOS doesn't see this as a problem (it assumes you know what

Re: [Freedos-devel] set device info

2023-07-30 Thread tom ehlert via Freedos-devel
> I am getting this: C:\>>fdtest > The shell is about to be terminated, though, this is > forbidden (usually by enabling the "/P" option). > You must reboot the system or, if this shell runs in > a multitasking environment, terminate this process/task manually. > when I run this: > C:\devel\

Re: [Freedos-devel] set device info

2023-07-30 Thread Bernd Böckmann via Freedos-devel
Hi Paul, I can reproduce this on T2307. It is running fine on a test image with self-build kernel (Git master, IA16-GCC) and alternative command shell (SvarCOM). The problem also does not occur under T2307 with SvarCOM as a shell. But I am not yet sure if it is the kernel or FreeCOM to blame. F

[Freedos-devel] set device info

2023-07-29 Thread Paul Edwards via Freedos-devel
Hi. I am getting this: C:\>fdtest The shell is about to be terminated, though, this is forbidden (usually by enabling the "/P" option). You must reboot the system or, if this shell runs in a multitasking environment, terminate this process/task manually. when I run this: C:\devel\pdos\pdpclib