Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7864869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:54:57+00:00 2026-06-02T23:54:57+00:00

When I run this script, the position of the mouse works up to the

  • 0

When I run this script, the position of the mouse works up to the column 255 – then the count begins by 0. Does this mean that my terminal does not support SGR/mode 1006?
(edited due ak2’s answer)

#!/usr/bin/env perl
use warnings;
use 5.12.0;
use utf8;
use Term::TermKey qw(FLAG_UTF8 FORMAT_LONGMOD FORMAT_MOUSE_POS);
my $tk = Term::TermKey->new( \*STDIN );
binmode STDOUT, ':encoding(UTF-8)' if $tk->get_flags & FLAG_UTF8;

$|++;
print "\e[?1003h";
print "\e[?1006h";

say "Quit with \"q\"";
while( 1 ) {
    $tk->waitkey( my $key );
    say $tk->format_key( $key, FORMAT_LONGMOD | FORMAT_MOUSE_POS );
    last if $tk->format_key( $key, 0 ) eq 'q';
}

print "\e[?1006l";
print "\e[?1003l";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:55:00+00:00Added an answer on June 2, 2026 at 11:55 pm

    No.

    It means you’re not using the very lastest libtermkey library yet, the one that supports positions greater than column 255. Possibly because I haven’t actually released it yet 😉

    I’ll let you know once that’s up, along with the extra CSI capture support for position reporting, etc..

    Also: If you have more libtermkey-specific questions, you might want to let me know more directly. E.g. you could email me to let me know you’ve posted a question; I don’t always make a habit of searching them out. 🙂


    Edit 2012/04/26: I’ve now released libtermkey 0.15 and Term::TermKey 0.14, which supports these columns above 255, along with the position report API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to run this script (embed drive list in a site) that
I'm trying to run this script that basically reads/interprets text in from a textfile
I have this script that run to fix my menu bar to the browser
Trying to run this script: import pythoncom, pyHook def OnMouseEvent(event): # called when mouse
I'm trying to run this script: import re, os def build_pool(cwd): global xtn_pool, file_pool
well i run this script , which is written to do some screenshots of
well i run this script , which is written to do some screenshots of
I'm trying to run this script on Mac OS 10.7 (Lion) and I'm getting
Currently I'm trying to run this powershell script: Param ( $websiteName, $physicalPath ) import-module
Can anyone please tell me how do I make this script run in IE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.