title: terminal: where am I?
body: <p>Is there a variable or a function, which can tell me the actual position of the cursor?</p>
  
  <pre><code>#!/usr/bin/env perl
  use warnings;
  use 5.012;
  
  use Term::ReadKey;
  use Term::Cap;
  use POSIX;
  
  my( $col, $row ) = GetTerminalSize();
  
  my $termios = new POSIX::Termios;
  $termios-&gt;getattr;
  my $ospeed = $termios-&gt;getospeed;
  
  my $terminal = Tgetent Term::Cap { TERM =&gt; undef, OSPEED =&gt; $ospeed };
  
  # some movement ...
  
  # at which position (x/y) is the cursor now?
  </code></pre>