mc/lib/edit.spell.rc

15 lines
273 B
Bash

#!/bin/sh
# *** External Spell Checker for Cooledit.
# arguments:
# $1 - edit file name
# $2 - highlight block file name
# $3 - error file name
# The editor doesn't save stty. Save it manually.
stty_save=`stty -g`
reset
clear
ispell $2 2>$3
clear
stty $stty_save