Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:43 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Are there any Word Processors written in BASIC?

Author Message
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 675
Posted: 01:36pm 22 Feb 2023
Copy link to clipboard 
Print this post

Hello,

I am wondering if there are any Word Processors (simple) written in BASIC for the pico / maximites! I think it would be kind of interesting to see things like WordStar or WordPerfect, since it is not as distracting as a modern computer where you quickly do all other things   . I am also interested how to accomplish a simple word processor or writing program. I know in the past, there were some textviewers written in Basic ("textlook" was the name, I think).

Greetings
Daniel
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 01:49pm 22 Feb 2023
Copy link to clipboard 
Print this post

Start here:

https://github.com/Cube9999/vi
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 02:04pm 22 Feb 2023
Copy link to clipboard 
Print this post

A code editor, rather than a Word Processor for the CMM2 in MMBasic by @Epsilon:

   https://github.com/epsilon537/xedit_cmm2

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
cosmic frog
Guru

Joined: 09/02/2012
Location: United Kingdom
Posts: 302
Posted: 03:36pm 22 Feb 2023
Copy link to clipboard 
Print this post

Can't you just use the MMBASIC built in editor and save as - save "mytext.txt"

Dave.
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 675
Posted: 04:18pm 22 Feb 2023
Copy link to clipboard 
Print this post

Hi Dave,

that is not possible! Because in German we have "ü ä ö and ß" so if I want to write in German I have to ü = ue ä=ae and so on.. This is not a good solution.

But as far as I know there is no ü ä ö ß so I have to do my own font, right? I am still a beginner when it comes to basic. So any hint would be great.

With


Do
  input:   a$=Inkey$
  If a$="" Then GoTo input
  EndIf
  Print "You pressed ";a$ " - CHR$("Asc(a$)")"
Loop


(With Keyboard set to GERMAN)

Key "ß" gives me "223"
Key "ä" = "228"
Key "Ä" = "196"
Key "ü" = "252"
Key "Ü" = "220"
Key "ö" = "246"
Key "Ö" = "214"

Is this more a question for Peter to may (?) implement those chars? Because especially when it comes to word processing it is a MUST. At this point if Peter won't implement this I have to do my own font I guess.

@ Tom

I hoped for some less complex editors to start with   . But really cool such programs exists for the maximite. I only plan to use the picoMiteVGA.


EDIT: I think I am lost, because the Inkey program above only works if sent via TeraTerm. On the PS2 Keyboard the specified Keys are not recognized at all (äüöß). Hmpf...


Greetings
Daniel
Edited 2023-02-23 02:33 by Amnesie
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 04:41pm 22 Feb 2023
Copy link to clipboard 
Print this post

I don't think the "high number" characters can be used in the internal editor or in the Print command as they are used internally in the interpreter. You can use them using CHR$() and POKE them into strings. Peter will, of course, join in now to tell me that I'm wrong again. :)

The internal editor isn't a word processor - there's no need for it to be and it would take up *far* too much space if it was. You can, of course, write your programs in an external word processor if you wish. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 675
Posted: 04:54pm 22 Feb 2023
Copy link to clipboard 
Print this post

Hello Mick,

this is an good idea, problem is that on German Keyboard layout the "inkey" is deaf to the following (physical) keys on the PS/2 Keyboard "äüöß" so I can't even read them in to process them after that.

Greetings
Daniel
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 05:01pm 22 Feb 2023
Copy link to clipboard 
Print this post

I know that the PS/2 input can handle *some* high number codes, but I don't think it's all of them. Function and arrow keys all all high numbered codes, for example.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 05:02pm 22 Feb 2023
Copy link to clipboard 
Print this post

  Amnesie said  ... problem is that on German Keyboard layout the "inkey" is deaf to the following (physical) keys on the PS/2 Keyboard "äüöß" so I can't even read them in to process them after that.


So, just to be clear, if you have TeraTerm (not a VGA display) connected to the 'mite but type on the PS/2 keyboard then those keys produce nothing ?

Note that depending on the current PicoMite font, characters above ASCII 127 may not print anything to the VGA display, and what they print to a terminal depends on the code-page the terminal is configured to use.

Best wishes,

Tom
Edited 2023-02-23 03:04 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 675
Posted: 05:04pm 22 Feb 2023
Copy link to clipboard 
Print this post

Hm, okay.. so there is really no possibility, not even a workaround since the physical PS/2 keys are not recognized at all (on the specified keys "üöäß").
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 05:07pm 22 Feb 2023
Copy link to clipboard 
Print this post

  Amnesie said  Hm, okay.. so there is really no possibility, not even a workaround since the physical PS/2 keys are not recognized at all (on the specified keys "üöäß").


If that really is the case then that would be a bug and I imagine Peter can probably fix it.

Does this produce nothing:

 Do
   a$=Inkey$
   If a$ <> "" Then Print "You pressed "; ASC(a$)
 Loop


Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 675
Posted: 05:08pm 22 Feb 2023
Copy link to clipboard 
Print this post

@ Tom

thwill
  Quote  So, just to be clear, if you have TeraTerm (not a VGA display) connected to the 'mite but type on the PS/2 keyboard then those keys produce nothing ?


I have connected both: A real physical PS/2 keyboard AND beeing connected via TeraTerm. And on the above program (with inkey) the mentioned keys via Serial work but won't on the real Keyboard connected via PS/2. They are ignored (while other keys work just normal as expected).
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 675
Posted: 05:10pm 22 Feb 2023
Copy link to clipboard 
Print this post

  thwill said  
  Amnesie said  Hm, okay.. so there is really no possibility, not even a workaround since the physical PS/2 keys are not recognized at all (on the specified keys "üöäß").


If that really is the case then that would be a bug and I imagine Peter can probably fix it.

Does this produce nothing:

 Do
   a$=Inkey$
   If a$ <> "" Then Print "You pressed "; ASC(a$)
 Loop


Best wishes,

Tom


Tested it: correct, it produces nothing on the physical keys (üöäß) via PS/2. Other keys work just fine.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5090
Posted: 06:07pm 22 Feb 2023
Copy link to clipboard 
Print this post

Maybe option keyboard maps the german keyboard keys that have alternatives on the us keyboard only. The special characters are igmored.

The pc keyboard driver will support all, since it is required in windows.

Note that full language support in windows is larger than the pico's flash. Somewhere you have to make a cut...
Edited 2023-02-23 04:12 by Volhout
PicomiteVGA PETSCII ROBOTS
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1593
Posted: 06:11pm 22 Feb 2023
Copy link to clipboard 
Print this post

@Daniel

I found this:
https://www.thebackshed.com/forum/ViewTopic.php?TID=13297
It might explain something.

Regards
Michael
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 06:21pm 22 Feb 2023
Copy link to clipboard 
Print this post

MMBasic is ASCII only. No umlaut, no acute accents, no pound sign. Anything you happen to get from teraterm is pure happenstance. The only thing you could do is use ON PS2 and interpret the scan codes.
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 675
Posted: 07:27pm 22 Feb 2023
Copy link to clipboard 
Print this post

Thank you Peter, at least this way I could read the scancode and interpret this with a custom font.  

Greetings
Daniel
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025