mirror of https://github.com/mananapr/cfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
296 B
17 lines
296 B
#!/bin/bash
|
|
|
|
W3MIMGDISPLAY="/usr/lib/w3m/w3mimgdisplay"
|
|
FONTH=8 # Size of one terminal row
|
|
FONTW=6 # Size of one terminal column
|
|
|
|
X=$1
|
|
Y=$2
|
|
COLUMNS=$3
|
|
LINES=$4
|
|
|
|
x=$((FONTW * X))
|
|
y=$((FONTH * Y))
|
|
|
|
erase="6;$x;$((y-8));$(( FONTW*COLUMNS ));$(( FONTH*LINES ))\n3;"
|
|
echo -e "$erase" | $W3MIMGDISPLAY
|