https://bugs.winehq.org/show_bug.cgi?id=54335
Bug ID: 54335 Summary: fp.exe has no mouse, resize does not work, escape string don't work Product: Wine Version: 8.0-rc4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: margers.roked@inbox.lv Distribution: ---
fp.exe download link http://downloads.freepascal.org/fpc/dist/3.2.2/i386-win32/fpc-3.2.2.i386-win... Fail to start from shortcut/launcher. Starting form terminal: 1) has no mouse support 2) not all escape strings work for example Alt+F does not open File menu 3) resize terminal window does not resize program window accordingly. Starting from cmd has the same problems + after exit cmd is broken
https://bugs.winehq.org/show_bug.cgi?id=54335
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com
--- Comment #1 from Eric Pouech eric.pouech@gmail.com --- thanks for the bug report
you should split the shortcut issue into a separate bug report (it depends from different components than the rest of the reported problems)
what doesn't work when running ./wine fp.exe - Alt-F: because it's likely managed by your xterm-like application (testing locally: Alt-F doesn't work, while Alt-O and Alt-W do). You need to configure (if possible) your xterm-like to no handle those sequences - mouse support (not implemented in this mode) (even if doable)
you'll get better results when running under wineconsole (./wine wineconsole <pathto>/fp.exe) - you'll get all Alt- combinations - mouse will be supported
concerning resizing: - fp adapts itself to console size (AFAICS, works as expected under wine) - but fp doesn't support resizing its window while running (it doesn't work in windows)
hint: under winconsole, when using right click, use properties in menu, then configuration tab, and pickup the window size that's convenient for you. validate & close dialog and exit fp. upon each restart the validated size should be default for fp.
HTH
https://bugs.winehq.org/show_bug.cgi?id=54335
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source URL| |https://web.archive.org/web | |/20240403234822/http://down | |loads.freepascal.org/fpc/di | |st/3.2.2/i386-win32/fpc-3.2 | |.2.i386-win32.exe Summary|fp.exe has no mouse, resize |FreePascal has no mouse, |does not work, escape |resize does not work, |string don't work |escape string don't work
--- Comment #2 from Ken Sharp imwellcushtymelike@gmail.com --- I don't know which bug this is following.
https://bugs.winehq.org/show_bug.cgi?id=54335
--- Comment #3 from mika margers.roked@inbox.lv --- From Eric Pouech response i understood that there is no bug - just use winconsole.
I have good knowledge of how keyboard and mouse do work in xterm. And it is a big mess. True functional keyboard is not possible (some sacrifices have to be made).
It is a great idea for wine to run console applications as natives in terminal. Questions is: "Do Wine have to translates keyboard escape sequences and provide some other functions for user program running in linux terminal"?
Winconsole: in general do work (key combinations, resize). Particularly for Fp.exe does not work switching between uses and ide screen. Key combination Alt+F5 do work, but functionality is somewhat broken. And i'm not sure is it problem of fp or wine. If you are looking for what to fix today - there is great opportunity to investigate. Otherwise you are free to close this bug report. Would be nice hear a comment at least.
https://bugs.winehq.org/show_bug.cgi?id=54335
--- Comment #4 from Eric Pouech eric.pouech@gmail.com --- (In reply to mika from comment #3)
From Eric Pouech response i understood that there is no bug - just use winconsole.
almost ;-) I'm saying that key binding and mouse support will be way better when running in window terminal (called by using wineconsole) that what you get in unix terminal. But unix terminal could be improved (esp. for mouse support). But don't hold your breath for this to be developped. So using wineconsole is a better option.
I have good knowledge of how keyboard and mouse do work in xterm. And it is a big mess. True functional keyboard is not possible (some sacrifices have to be made).
It is a great idea for wine to run console applications as natives in terminal. Questions is: "Do Wine have to translates keyboard escape sequences and provide some other functions for user program running in linux terminal"?
I'm not sure what you mean here, but yes in this mode we have to adapt to underlying's terminal escape sequence (even if currently we mostly stick to generic ones). (there are for example open bug reports for ^h adaptation). What do you mean by "provide some other functions"?
Winconsole: in general do work (key combinations, resize). Particularly for Fp.exe does not work switching between uses and ide screen. Key combination Alt+F5 do work, but functionality is somewhat broken. And i'm not sure is it problem of fp or wine. If you are looking for what to fix today - there is great opportunity to investigate. Otherwise you are free to close this bug report. Would be nice hear a comment at least.
I'd say if this feature works correctly under Windows, it looks more like a Wine bug. Did you have the opportunity to check behavior under Windows (and if yes, which version).
TIA
https://bugs.winehq.org/show_bug.cgi?id=54335
--- Comment #5 from mika margers.roked@inbox.lv --- (In reply to Eric Pouech from comment #4)
It is a great idea for wine to run console applications as natives in terminal. Questions is: "Do Wine have to translates keyboard escape sequences and provide some other functions for user program running in linux terminal"?
I'm not sure what you mean here, but yes in this mode we have to adapt to underlying's terminal escape sequence (even if currently we mostly stick to generic ones). What do you mean by "provide some other functions"?
Basic would be screen height/with, but that's irrelevant if there is no good keyboard support.
(there are for example open bug reports for ^h adaptation).
in xterm Ctrl+h key code x08
BackSpace key code x7f Ctrl+BackSpace key code x08
Those can be flipped by sending escape sequence
BackSpace key code x08 Ctrl+BackSpace key code x7f
This is "to be or not to be" situation: Ctrl+h is ether BackSpace or Ctrl+BackSpace
Winconsole: in general do work (key combinations, resize). Particularly for Fp.exe does not work switching between uses and ide screen. Key combination Alt+F5 do work, but functionality is somewhat broken. And i'm not sure is it problem of fp or wine. If you are looking for what to fix today - there is great opportunity to investigate. Otherwise you are free to close this bug report. Would be nice hear a comment at least.
I'd say if this feature works correctly under Windows, it looks more like a Wine bug. Did you have the opportunity to check behavior under Windows (and if yes, which version).
I tested in windows Vista. I did open new bug report. https://bugs.winehq.org/show_bug.cgi?id=56903