* * *

Author Topic: FP works in PuTTY SSH, FP fails in PuTTY SSH w/TMUX  (Read 1270 times)

ArdRhi

  • Newbie
  • Posts: 1
FP works in PuTTY SSH, FP fails in PuTTY SSH w/TMUX
« on: March 01, 2018, 08:58:15 pm »
Ok, this is a bit convoluted, but bear with me.

I've got FP/Lazarus installed on a Raspi 3 under Raspbian "Stretch". I SSH into it from a Win7 machine, and can flip to HDMI to use the Pi desktop directly if I want, but it's a pain to juggle extra keyboards/mice. I have two SSH windows via PuTTY into the Pi. On one PuTTY window, I run "fp" and the Free Pascal IDE comes up, and works just fine. The other PuTTY window has TMUX running. Even if I only have one pane configured, running "fp" fails with the following message:

Runtime Error 106 at $000CA0A4
   $000CA0A4
   $00010124

I've searched all over and can't find where the point of failure is. It COULD be in my TMUX configuration, and if anyone knows of a more specific place to look, I'd be thankful of the help.

I know the setup is silly, and I can forward Lazarus via SSH using Xming and it works fine. But I wanted to see if I could use the old interface, as I first started using Turbo Pascal in the CP/M days, and was nostalgic.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6249
Re: FP works in PuTTY SSH, FP fails in PuTTY SSH w/TMUX
« Reply #1 on: March 02, 2018, 10:09:39 am »
FP requires quite a lot from a terminal.  106 is a bit weird error though:

 106 Invalid numeric format
    Reported when a non-numeric value is read from a text file, and a numeric value was expected.

But without debugging the particular situation and build it will be hard. I don't know anybody using tmux with FP. (or tmux at all, which I assume is kind of a screen?)

I just tested and FP works with screen in a putty, so it must be some tmux incompatibility. Though I didn't test keybindings.
« Last Edit: March 02, 2018, 10:11:30 am by marcov »

mdalacu

  • Full Member
  • ***
  • Posts: 182
    • dmSimpleApps
Re: FP works in PuTTY SSH, FP fails in PuTTY SSH w/TMUX
« Reply #2 on: March 02, 2018, 11:55:40 am »
I have tested this locally on Ubuntu 17.10 x64 and it fails with same error under tmux. No ssh no nothing, just local terminal session.
I have also found an workaround: if you launch screen under tmux...it works oO
« Last Edit: March 02, 2018, 11:58:03 am by mdalacu »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus