Commits

Anonymous committed 7d642ca

no need to report size as an escape code, it gets erased anyway

  • Participants
  • Parent commits 99b91d9

Comments (0)

Files changed (2)

 	fflush(stdout);
 	printf("\033[1;1H");
 	fflush(stdout);
-	printf("\n\033[%d;%dR\n", ws.ws_row, ws.ws_col);
+	printf("\n%d;%d\n", ws.ws_row, ws.ws_col);
 	fflush(stdout);
 
 	rewind(in);

File extras/cw_color.sh

 done
 
 cw "$IN" "$OUT" | awk -v cols="$(tput cols)" -v me="$NICK" -v date_fmt="$date_fmt" -v srv_fmt="$serv_fmt" -v nick_fmt="$nick_fmt" -v me_fmt="$me_fmt" -v act_fmt="$act_fmt" -v reset_fmt="$reset" '{
-if ($0 ~ /^\033\[[0-9]*;[0-9]*R$/) {
+if ($0 ~ /^[0-9]*;[0-9]*$/) {
     cols = substr($0, index($0, ";") + 1)
-    sub(/R$/, "", cols);
     next;
 }
 if ($0 ~ /^\033\[/) {