This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python terminal cmd line recall
Type: behavior Stage:
Components: Windows Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eryksun, jggammon, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2021-07-13 18:23 by jggammon, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg397435 - (view) Author: jg (jggammon) Date: 2021-07-13 18:23
Command line recall in python terminal treats strings case insensitively.

Example:
Define a 'dummy' function that takes a string as input. If you run dummy twice with the same input string, but different cases, it only saves one.
>>> dummy("This is a test") # run this
>>> dummy("THIS IS A TEST") # run again w/ different string
Now if you try cmd recall, it only recalls the first.
I believe it should recall both.
Maybe it's treating one as a duplicate - erroneously?
msg397447 - (view) Author: Eryk Sun (eryksun) * (Python triager) Date: 2021-07-13 21:55
By default, reading input from the console uses the console's built-in command-line editor. You can clear the console input history with Alt+F7; display the history list with F7; navigate in the history list with the up and down arrow keys, even when the list isn't displayed; recall the first and last entries of the list with page up and page down; and cycle through matching command completions with F8.

Having said that, the new implementation of the console in Windows 10 has a bug in the "Discard Old Duplicates" history option [1]. Try disabling this option in the console's "Properties" dialog, which can be accessed from the Alt+Space control menu.

---
[1] https://github.com/microsoft/terminal/issues/4186
msg397479 - (view) Author: jg (jggammon) Date: 2021-07-14 13:39
Thanks, I didn't know about the F7 or F8 commands.

My 'Discard Old Duplicates' was already disabled (default?).

John G. Gammon -.  ..  ....  ..  .-..      .-  -..  --  ..  .-.  .-  .-.  ..
This message and any attachments hereto may contain confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the intended recipient, please advise the sender immediately by reply e-mail and delete this message; you must not use, copy, disclose or take any other action based on this message or any information herein. Thank you for your cooperation.

________________________________
From: report=bugs.python.org@roundup.psfhosted.org <report=bugs.python.org@roundup.psfhosted.org> on behalf of Eryk Sun <report@bugs.python.org>
Sent: Tuesday, July 13, 2021 16:55
To: jggammon@hotmail.com <jggammon@hotmail.com>
Subject: [issue44627] Python terminal cmd line recall

Eryk Sun <eryksun@gmail.com> added the comment:

By default, reading input from the console uses the console's built-in command-line editor. You can clear the console input history with Alt+F7; display the history list with F7; navigate in the history list with the up and down arrow keys, even when the list isn't displayed; recall the first and last entries of the list with page up and page down; and cycle through matching command completions with F8.

Having said that, the new implementation of the console in Windows 10 has a bug in the "Discard Old Duplicates" history option [1]. Try disabling this option in the console's "Properties" dialog, which can be accessed from the Alt+Space control menu.

---
[1] https://github.com/microsoft/terminal/issues/4186

----------
nosy: +eryksun

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue44627>
_______________________________________
History
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88793
2021-07-14 13:39:49jggammonsetmessages: + msg397479
2021-07-13 21:55:23eryksunsetnosy: + eryksun
messages: + msg397447
2021-07-13 18:23:52jggammoncreate