Home  |  Contents 
Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: ESPTerm - webbased VT100 Post ReplyPost New Topic
<< Prev Page of 2
Author
Message << Prev Topic | Next Topic >>
bigfix
Regular Member
Regular Member


Joined: 20 February 2014
Location: Austria
Online Status: Offline
Posts: 52
Posted: 15 September 2017 at 8:36pm | IP Logged Quote bigfix

Useful Code Snippet from Rob to test Mouse functionality:

Const ESC=Chr$(27)

Print ESC "[?9h";              ' enable mouse reporting
Print ESC "[?1015h";           ' select URXVT encoding (if available)
Print ESC "[?1006h";           ' select SGR encoding (if available)

Do
  Do: A$=Inkey$: Loop Until A$<>""
  If A$=Chr$(27) Then Print
  If Asc(A$)<32 Then Print "<" Str$(Asc(A$)) ">"; Else Print A$;
Loop Until A$=Chr$(120)

Print ESC "[?1006l";           ' disable SGR encoding
Print ESC "[?1015l";           ' disable URXVT encoding
Print ESC "[?9l";              ' disable mouse reporting


it makes use of alternative encoding for the mouse location reporting - SGR (1006) is the preferred reporting method, URXVT (1015) is ok but not great, while the default encoding can not encode beyond column 95 if using 7-bit characters.

To exit type "x"

Mousebuttons are encoded in first Value - even the wheel works
Scren shows left button clicks in corners & center






Back to Top View bigfix's Profile Search for other posts by bigfix
 


If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Search the forums using Google.
<< Prev Page of 2
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.0781 seconds.
Privacy Policy     Process times : 0, 0, 0, 0.08