Firmware 2021 - Test PRINT and PRINT2D cmds
|
04-16-2021, 11:17 PM
(This post was last modified: 04-28-2021 06:52 PM by compsystems.)
Post: #1
|
|||
|
|||
Firmware 2021 - Test PRINT and PRINT2D cmds
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 |
|||
04-19-2021, 01:35 PM
Post: #2
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
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 Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
04-19-2021, 02:10 PM
Post: #3
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
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 Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
04-20-2021, 06:27 AM
Post: #4
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
Hello,
I have fixed the improper escape decoding... Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
04-24-2021, 04:21 AM
(This post was last modified: 04-24-2021 04:26 AM by compsystems.)
Post: #5
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
(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() |
|||
04-24-2021, 09:13 AM
Post: #6
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds | |||
04-24-2021, 03:37 PM
Post: #7
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
Yes, I'm using 2 spaces in KhiCAS.
|
|||
04-24-2021, 05:03 PM
Post: #8
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
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 |
|||
04-24-2021, 05:54 PM
Post: #9
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
PRINT2D is not a CAS command.
|
|||
04-24-2021, 06:58 PM
Post: #10
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
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.
|
|||
04-28-2021, 05:54 PM
(This post was last modified: 04-28-2021 06:08 PM by compsystems.)
Post: #11
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
eval is a supercommand, an example with to print cmd
frn info: http://www-fourier.ujf-grenoble.fr/~pari...tml#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. |
|||
04-28-2021, 10:51 PM
(This post was last modified: 04-28-2021 11:04 PM by compsystems.)
Post: #12
|
|||
|
|||
RE: Firmware 2021 - Test PRINT and PRINT2D cmds
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)