flat assembler
Message board for the users of flat assembler.
  
|  Index
      > DOS > How to set non-blinking block cursor in DOS? | 
| Author | 
 | 
| casey 28 Mar 2006, 23:29 mov ax,1003h
 mov bl,0 ;bl = 0 no blink = 1 for blink int 10h I think you get 16 background (paper) colors without the blink? -- casey | |||
|  28 Mar 2006, 23:29 | 
 | 
| lilainst 29 Mar 2006, 02:24 My current Video Mode is 03H, I tried your code in FreeDos debug.com, but it has no effect. | |||
|  29 Mar 2006, 02:24 | 
 | 
| casey 29 Mar 2006, 07:20 Sorry I was confusing the flashing cursor with a flashing character.
 You might try Ralfs interrupt list, http://www.cs.cmu.edu/~ralf/files.html -- casey | |||
|  29 Mar 2006, 07:20 | 
 | 
| lilainst 29 Mar 2006, 08:57 Maybe it's not easy to fulfill this kind of function in one 'int' instruction on PC platform. That is why both linux and BSD refers it as SoftCursor, I suppose. 
 And I think the possible way to do is, turn off the cursor first, and then write our own cursor with reverse display... | |||
|  29 Mar 2006, 08:57 | 
 | 
| casey 30 Mar 2006, 07:13 That is what I remember doing when playing with the text mode.
 Do you use the mouse functions? Graphic modes were more fun. It has been at least seven years since I last used assembler with DOS. I don't think DOS is all that practical since WindowsME. I think if you use DOS you might as well turn off Windoze   -- casey | |||
|  30 Mar 2006, 07:13 | 
 | 
| Matrix 30 Mar 2006, 18:57 hi, its easy, do this:
 Code: cursoron: ; Turns CURSOR ON. mov ah,1 mov cx,0x0607 int 10h ret cursoroff: ; Turns CURSOR OFF. mov ah,1 mov cx,0x1400 int 10h ret cursorhidden: ; Returns 1 if cursorhidden, 0 otherwise. mov ah,0x03 int 10h xor al,al cmp ch,$20 jne .skip mov al,1 .skip: ret hmm, i remeber there is some custom cursor function too, search in the rb int list, it should be somewhere near these functions. | |||
|  30 Mar 2006, 18:57 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.