--- title: "Tyd-Bits" type: "article" slug: "tyd-bits" url: "http://localhost/article/tyd-bits/" markdown_url: "http://localhost/article/tyd-bits.md" published_at: "2020-10-27T17:09:33+00:00" modified_at: "2026-08-08T22:59:07+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Poking MODE The 2068 User Manual indicates that the system variable MODE, at address 23617, specifies the cursor (K, L, C, G, or E), and that \"Poking the variable will have no lasting effect.\" This is not entirely correct. First, the contents of MODE are determined as follows: CONTENTS BIT SET CURSOR (S) 0 NONE…" category: - name: "SyncWare News" slug: "syncware-news" taxonomy: "category" url: "http://localhost/category/periodicals/syncware-news/" post_tag: - name: "Best of Timex/Sinclair 2068 Articles and Documents" slug: "ts2068best" taxonomy: "post_tag" url: "http://localhost/tag/ts2068best/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Duncan Teague" slug: "duncan-teague" taxonomy: "indiv" url: "http://localhost/indiv/duncan-teague/" - name: "P. H. Skipper" slug: "p-h-skipper" taxonomy: "indiv" url: "http://localhost/indiv/p-h-skipper/" publication: "SyncWare News" publication_r: id: 10245 title: "SyncWare News" type: "periodical" url: "http://localhost/periodical/syncware-news/" authors: "P. H. Skipper; Duncan Teague" authors_r: - name: "P. H. Skipper" slug: "p-h-skipper" taxonomy: "indiv" url: "http://localhost/indiv/p-h-skipper/" - name: "Duncan Teague" slug: "duncan-teague" taxonomy: "indiv" url: "http://localhost/indiv/duncan-teague/" volume: "2" issue: "4" issues_articles: - id: 26683 title: "SyncWare News v2 n4" type: "issue" url: "http://localhost/issue/syncware-news-v2-n4/" pages: "5" pubdate: "March/April 1985" archive_link: false volumeissue: "v2n4" --- # Tyd-Bits ### Poking MODE The 2068 User Manual indicates that the system variable MODE, at address 23617, specifies the cursor (K, L, C, G, or E), and that “Poking the variable will have no lasting effect.” This is not entirely correct. First, the contents of MODE are determined as follows: ``` CONTENTS BIT SET CURSOR (S) 0 NONE K, L or C 1 0 E 2 1 G ``` If the system variable MODE is zero, then the cursor or (L or C) is determined by the contents of the variable FLAGS2, at the address 23658. 0 (no bit set) will give the L cursor and 8 (bit 3 set) will give a C cursor. POKEing the desired value into MODE will give the desired effect long enough to provide a preselected cursor in a following INPUT statement. This permits, for example, the following BASIC code: ``` 10 BORDER 0: INK 6: PAPER 0: CLS 20 INPUT "Location- Vert: ";v;';" Horiz: ";h 30 INPUT "Paper: ";p;';"Ink: ";i 40 POKE 23617,2 50 INPUT "Graphic: ";g$ 60 POKE 23617,0 70 PRINT AT v,h; PAPER p; INK i;g$ 75 PAUSE 200 80 GO TO 10 ```