Cannot get mouse working in linux console lazarus / 66-Unix ---------------------------------------------------------------------- jalphonse · 2015-01-14 09:26 Hi, I try to program the mouse in a linux console (xterm). Even with the very simple example given in the mouse unit reference, I cannot get it working. When I run the example, it only prints ANSI escape code on the console each time I press a mouse button. Here is the code used: Program Example2; Uses mouse; begin   InitMouse;   Writeln('Press right mouse button to exit program');   While (GetMouseButtons<>MouseRightButton) do ;   DoneMouse; end. Thank you for your help. ---------------------------------------------------------------------- Kays · 2017-03-19 22:51 Quote from: jalphonse on January 14, 2015, 10:26:55 amI try to program the mouse in a linux console (xterm).The Linux console or the Linux terminal is the tty which you usually access via pressing e.g. [Ctrl] + [Alt] + [F1]. Quote from: jalphonse on January 14, 2015, 10:26:55 amWhen I run the example, it only prints ANSI escape code on the console each time I press a mouse button. […]This corresponds to the documented behavior: Quote from: Reference for unit 'Mouse'No support for graphical screens is implemented, and there are (currently) no plans to implement this.Starting your application on the Linux terminal (not under X11 or Wayland) [while gpm is running] results in the expected behavior.