Replies: 5 comments 3 replies
-
Had the same issue, did u find any solutions? |
Beta Was this translation helpful? Give feedback.
-
I find a solution and it does work. https://www.reddit.com/r/django/comments/tzj0ig/python_interpreter_history_doesnt_work_updown/
|
Beta Was this translation helpful? Give feedback.
-
For anyone dealing with the same issue: If changing the cmd options doesn't fix the problem (for example, in cmd inside wezterm or neovim, as your cmd options are ignored in such cases) and you don't want to edit the poetry files (as suggested here), one may compile the following program: #include <windows.h>
int main() {
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_HISTORY_INFO historyInfo;
historyInfo.cbSize = sizeof(CONSOLE_HISTORY_INFO);
historyInfo.HistoryBufferSize = 1000;
historyInfo.NumberOfHistoryBuffers = 10;
SetConsoleHistoryInfo(&historyInfo);
return 0;
} and run it with cmd like so: For example, the solution for neovim looks like: vim.cmd([[autocmd TermOpen * call chansend(b:terminal_job_id, "D:/path/to/change_max_buffers.exe\r")]]) |
Beta Was this translation helpful? Give feedback.
-
I have this issue on Linux. It's not just up / down but all commands like |
Beta Was this translation helpful? Give feedback.
-
If you just need a python shell (running with env created with poetry), and If you don't want to run scripts to enable history, you can directly run python.exe without using poetry shell:
This will get the arrow keys working, just not spawning a new shell. |
Beta Was this translation helpful? Give feedback.
-
when i start a shell (Windows 10) with
poetry shell
, the up and down arrow keys are not working. they are supposed to go to previous commands i executed. is there something i forgot to do?Beta Was this translation helpful? Give feedback.
All reactions