Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/arch/zx48k/library/input.bas
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,25 @@ END FUNCTION
' Function 'PRIVATE' to this module.
' Shows a flashing cursor
' ------------------------------------------------------------------
SUB FASTCALL PRIVATEInputShowCursor
SUB PRIVATEInputShowCursor
REM Print a Flashing cursor at current print position
PRINT AT csrlin(), pos(); OVER 0; FLASH 1; " " + CHR$(8);
DIM x, y as UBYTE
y = csrlin()
x = pos()
PRINT AT y, x; OVER 0; FLASH 1; " "; AT y, x;
END SUB


' ------------------------------------------------------------------
' Function 'PRIVATE' to this module.
' Hides the flashing cursor
' ------------------------------------------------------------------
SUB FASTCALL PRIVATEInputHideCursor
SUB PRIVATEInputHideCursor
REM Print a Flashing cursor at current print position
PRINT AT csrlin(), pos(); OVER 0; FLASH 0; " " + CHR$(8);
DIM x, y as UBYTE
y = csrlin()
x = pos()
PRINT AT y, x; OVER 0; FLASH 0; " "; AT y, x;
END SUB

#endif
Expand Down
14 changes: 10 additions & 4 deletions src/arch/zxnext/library/input.bas
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,25 @@ END FUNCTION
' Function 'PRIVATE' to this module.
' Shows a flashing cursor
' ------------------------------------------------------------------
SUB FASTCALL PRIVATEInputShowCursor
SUB PRIVATEInputShowCursor
REM Print a Flashing cursor at current print position
PRINT AT csrlin(), pos(); OVER 0; FLASH 1; " " + CHR$(8);
DIM x, y as UBYTE
y = csrlin()
x = pos()
PRINT AT y, x; OVER 0; FLASH 1; " "; AT y, x;
END SUB


' ------------------------------------------------------------------
' Function 'PRIVATE' to this module.
' Hides the flashing cursor
' ------------------------------------------------------------------
SUB FASTCALL PRIVATEInputHideCursor
SUB PRIVATEInputHideCursor
REM Print a Flashing cursor at current print position
PRINT AT csrlin(), pos(); OVER 0; FLASH 0; " " + CHR$(8);
DIM x, y as UBYTE
y = csrlin()
x = pos()
PRINT AT y, x; OVER 0; FLASH 0; " "; AT y, x;
END SUB

#endif
Expand Down