Firmware 2021 - Test PRINT and PRINT2D cmds - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Firmware 2021 - Test PRINT and PRINT2D cmds (/thread-16676.html) |
Firmware 2021 - Test PRINT and PRINT2D cmds - compsystems - 04-16-2021 11:17 PM Hello hp¹s In firmware 2021, we have a new PRINT2D command in math book print format. =] A: PRINT2D does not work in CAS mode =( Quote:PRINT2D Syntax: B: The tab symbol must be invisible in terminal view and visible in edit as ⇥ PHP Code: PRINT( "Hello\n\tworld \\ \" " ); // Hello world \ " Basic escape characters work great in the code editor, but not yet in the history view =( Test PRINT & PRINT2D cmds HOME MODE: PHP Code: EXPORT print_cmds_home() Test print (lowercase) cmd CAS MODE: PHP Code: #cas output comparison between HOME and CAS RE: Firmware 2021 - Test PRINT and PRINT2D cmds - cyrille de brébisson - 04-19-2021 01:35 PM Hello, Unfortunately, I do not think that I will be able to do much about the print and CAS mode... PPL/CAS integration can only go so far without doing a LOT of work... As far as the "tab" goes, how many spaces would you like it to be? 2 or 4? Cyrille RE: Firmware 2021 - Test PRINT and PRINT2D cmds - cyrille de brébisson - 04-19-2021 02:10 PM Hello, Actually, I will just replace the tab with a single space... Prime does not use a monospace font, so you should not be using tabs anyway :-) _______ _ _ _ _ |__ __| | | | | | | | | | | __ _| |__ ___ __| | ___ _ __ ___ | |_ __ _____ _ __| | __ | |/ _` | '_ \/ __| / _` |/ _ \ | '_ \ / _ \| __| \ \ /\ / / _ \| '__| |/ / | | (_| | |_) \__ \ | (_| | (_) | | | | | (_) | |_ \ V V / (_) | | | < |_|\__,_|_.__/|___/ \__,_|\___/ |_| |_|\___/ \__| \_/\_/ \___/|_| |_|\_\ Cyrille RE: Firmware 2021 - Test PRINT and PRINT2D cmds - cyrille de brébisson - 04-20-2021 06:27 AM Hello, I have fixed the improper escape decoding... Cyrille RE: Firmware 2021 - Test PRINT and PRINT2D cmds - compsystems - 04-24-2021 04:21 AM (04-20-2021 06:27 AM)cyrille de brébisson Wrote: Hello, ok, now it prints fine only in Terminal View, but not in the History View display, and in the [Show] screen, because it prints a little box □. Inside the code it is not convenient to show spaces, better a tab symbol and more when the code is python (tab character (#09h) as an arrow ↦ , ⇥ or this you can modify the text font by replacing the empty or box character □ with an arrow ⇥, because with white spaces it is difficult to determine the indentation PHP Code: EXPORT prg1() RE: Firmware 2021 - Test PRINT and PRINT2D cmds - jonmoore - 04-24-2021 09:13 AM (04-19-2021 01:35 PM)cyrille de brébisson Wrote: As far as the "tab" goes, how many spaces would you like it to be? 2 or 4? Considering that a calculator has limited horizontal real-estate, I'd suggest that 'tab' spacing should be 2 characters. RE: Firmware 2021 - Test PRINT and PRINT2D cmds - parisse - 04-24-2021 03:37 PM Yes, I'm using 2 spaces in KhiCAS. RE: Firmware 2021 - Test PRINT and PRINT2D cmds - compsystems - 04-24-2021 05:03 PM Hello Mr parisse Why in CAS mode QUOTE or '' it is not working?, that is, when printing it evaluates the expression PHP Code: PRINT2D( quote(5 ^ 2) ); // 5² , 2D without evaluating RE: Firmware 2021 - Test PRINT and PRINT2D cmds - parisse - 04-24-2021 05:54 PM PRINT2D is not a CAS command. RE: Firmware 2021 - Test PRINT and PRINT2D cmds - jonmoore - 04-24-2021 06:58 PM On the subject fonts in the Python text editor, I noticed that the Alpha status indicator in the top bar displays incorrect information. It shows the font as being capitalised when it's lower case and visa versa. RE: Firmware 2021 - Test PRINT and PRINT2D cmds - compsystems - 04-28-2021 05:54 PM eval is a supercommand, an example with to print cmd frn info: http://www-fourier.ujf-grenoble.fr/~parisse/giac/doc/fr/cascmd_fr/cascmd_fr259.html#sec338 In the following code you can see that to clean the screen I use PRINT(); & Print; print cmd without parentheses in CAS mode clears the screen, while at HOME it requires (), for this reason an improvement is that print() in CAS is interpreted as a clear screen, because when a code is executed any mode (CAS or HOME) works the same PHP Code: #cas Another very useful improvement is that when placing a variable of the name of a CAS type function from the [var] menu, it automatically places an empty parenthesis as a suffix after the name of the program. eval_cmd_cas> eval_cmd_cas() The reason is that without parentheses it is considered as RCL or call of the content of the function and not as its execution. RE: Firmware 2021 - Test PRINT and PRINT2D cmds - compsystems - 04-28-2021 10:51 PM Hi, the following code works fine from HOME mode, but not from CAS mode. Note that it uses WAIT cmd, to stop printing, in the hp48 and 50 series it showed HALT at the top, this is important to know that the printing is paused, I think it is also important to place this message, it may be above the la current time Thanks PHP Code: #cas HOME mode test_expr2Dprint_CAS() [enter] ok, but in the end it returns the source code, this is because the name of the program suppresses the parentheses |