The following warnings occurred:
Warning [2] Undefined array key 26189 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 26198 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 26200 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 26203 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 26218 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 26218 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HP42S programming (text editor)



#6

Well, I'm working on some text editor and "file utility" fucntions for the 42S, limited to what I cna code on the machine (menaing I'm not doing simulator and saturn assembly..... yet.)

So far I've got two systems running side by side- one uses an x row by 8 column array to hold the alpha data in groups of 6 letters per element. one problem with this is that you need to somehow control the display of empty elements to prevent excessive numerics. (I generally have my machine set to fix 5 and end up with 42 0s in the alpha register if I have a >7 character string, for example)

The other method is to make an x by 44 matrix and use individual character codes, but this seems to just add a problem of taking more memory (not everyone has ~31500 bytes to play with)

I also have not found a way around the need to use the r/s key after doing alpha entry. The best I've done (and found int he programming guide that this is what they do as well) is:

AON
PROMPT
AOFF

anyone have anyhting better? There are two main uses, one is to type in the [programmer restricted] 6 character "filename" with then gets ASTO 40 (I use registers 40-49 thus far to prevent overwriting other regs, we shall see)
the other main use is the actual editing and entering of textual data (44 character line limit) which then gets stored in 6 character chunks into the various columns of the current row of a matrix.


I'm doing this all fairly conventionally, using the 42S manual and the PDF of the Programming guide as references.
If I'm missing anything important, someone holler up :)

The matrix system for forming "text files" seems to be the only way I can do this given the 42S system...


the other functions I'm working on (or in a few cases have done) include newfl (making a new "file"), cat (straight concat file x into file y), merge (take files z and y & create a new file x), list (list matrixes identified as "files"), copy (done within TXTED to keep the file listing straight), delete (same reason), and I've got the menu hooks for an encryption and decryption method for fun (but that is lower priority than the rest and not started beyond having blank labels.)

-C


#7

Hi, Christof;

have you thought about a running program that would stop and scan the keyboard with GETKEY? This way, everything will be automated, you will not insert characters directly to ALPHA register, instead ALPHA contents would be "re-assembled" each time a key is pressed. You should terminate the "writing" process if an specific key is keyed in. Each key has a code for GETKEY, and you need to convert the code to ASCII and use XTOA to add the keyed-in character to ALPHA. You can simulate the ALPHA input already existing in the HP42S or create your own. Also, you would verify ALENG (ALPHA Length) for each key pressed and when it reaches 22 you would ASTO ST X and ASHF (ALPHA shift).

Many things can be done out of the ALPHA environment and you would simulate an actual editor, even with specific softkeys. And the HP42S is fast enough to allow the program to run and build the LCD fastly.

I thought about an editor for the HP42S, but I remember at that time I thought it would be a lot usefull if the HP42S had I/O capabilities to save and retrieve matrices with ALPHA data.

As you asked about suggestions, my US$ 0.05

Cheers and success.

Luiz C. Vieira


#8

Luiz-

not a bad idea...

I/O would help a lot, I started out just looking for something to keep some notes with when I'm out.

And I had thought of doing something that would allow for straight alpha entry, though I'd have to make some sort of overlay to know which keys were which in "alpha keyboard mode"

Typing with the two level alpha menu isn't really that slow for notes once you get used to it, though. (I bet I could make an easily memorizable system that would use only the first 12 keys in combinations of two, which is a 144 character space.Btu that is another topic entirely.)

I'll look at a getkey based system for entry, if I am manually drawing the display from user code it might get a bit large as a codebase for a stock 42S..

could be *really* useful if we get to a point where we can add in a rom on that second pad, though....

I'll look at the getkey based possibilities this afternoon.

Would people be willing to muck with their keyboards to have a "proper" alpha input system?

(and how best to handle lower case when you need the shift key to handle numbers and such)


#9

Hi, Christof;

If you use GETKEY, you can use a flag to signalize shifted (lower-case) letters, so you would not need to keep [SHIFT] keey pressed, it would act as a toggle key. The problem is that the [SHIFT] key itself does not generate a code, instead it shifts the code for the next key (if I am not wrong). Also, if you think the keyboard is not good for signaling all keys, you can use [^] (up) and [v] (down) keys to build two keyboards in the same key set, each one with half the keys in the alphabet.

Jus ideas...

Success.


#10

I was htinking more of the need to use the numeric and "4 banger" keys for parts of the alphabet, so needing to shift to do numeric and other symbols.

Simulating shift keys with the arrows is possible... I'm going to start worrying about how many changes to the "normal" interface that creates. (functionally having 3 shift keys gives you an insane amount of keyspace that it is possible to assign keys to- 165 in the most efficient double shifting combination, 99 with only single shifting)

I think ideally I would like to keep the standard alpha entry mode, though. At leas tin one version. it's scary to think of modifying the keyboard on these even to just add in alpha characters in paint.

But who knows which answer will work best in the end?


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime editor errors Alberto Candel 0 955 10-22-2013, 01:34 AM
Last Post: Alberto Candel
  Prime 'CONTENT' section not retaining info text Geoff Quickfall 2 1,328 10-17-2013, 05:24 PM
Last Post: Geoff Quickfall
  Prime Program Editor Bug Dougggg 8 2,430 10-09-2013, 10:56 PM
Last Post: Han
  A HP42S Code Editor Andreas 9 2,731 09-22-2013, 03:17 AM
Last Post: Andreas
  [HP Prime CAS] No Pretty Print (Text Book) CompSystems 1 1,166 08-17-2013, 12:41 PM
Last Post: CompSystems
  Strings inside matrix editor on 50g Chris Smith 3 1,509 05-22-2013, 04:04 PM
Last Post: Chris Smith
  WP34s displaying text Steve B (Canada) 3 1,480 04-16-2013, 04:32 PM
Last Post: Walter B
  Free HP39gII online note editor Mic 0 933 02-25-2013, 05:48 AM
Last Post: Mic
  Mapping HP48 Text to Unicode Chris Dreher 0 813 01-16-2013, 01:18 AM
Last Post: Chris Dreher
  Mapping HP48 Text to Unicode Chris Dreher 5 1,908 12-11-2012, 01:38 AM
Last Post: Chris Dreher

Forum Jump: