Back out cursor wrap (restore original thing)

Submitted by: Bill Paul
This commit is contained in:
Andrey A. Chernov 1995-01-12 20:14:28 +00:00
parent dac0f2dbc1
commit 9db2473d62
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5553
3 changed files with 6 additions and 6 deletions

View file

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: syscons.c,v 1.88 1995/01/03 16:56:05 bde Exp $
* $Id: syscons.c,v 1.89 1995/01/12 11:42:44 sos Exp $
*/
#include "sc.h"
@ -2112,7 +2112,7 @@ ansi_put(scr_stat *scp, u_char c)
/* Print only printables */
*scp->crtat = (scp->term.cur_attr | scr_map[c]);
scp->crtat++;
if (++scp->xpos > scp->xsize) {
if (++scp->xpos >= scp->xsize) {
scp->xpos = 0;
scp->ypos++;
}

View file

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: syscons.c,v 1.88 1995/01/03 16:56:05 bde Exp $
* $Id: syscons.c,v 1.89 1995/01/12 11:42:44 sos Exp $
*/
#include "sc.h"
@ -2112,7 +2112,7 @@ ansi_put(scr_stat *scp, u_char c)
/* Print only printables */
*scp->crtat = (scp->term.cur_attr | scr_map[c]);
scp->crtat++;
if (++scp->xpos > scp->xsize) {
if (++scp->xpos >= scp->xsize) {
scp->xpos = 0;
scp->ypos++;
}

View file

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: syscons.c,v 1.88 1995/01/03 16:56:05 bde Exp $
* $Id: syscons.c,v 1.89 1995/01/12 11:42:44 sos Exp $
*/
#include "sc.h"
@ -2112,7 +2112,7 @@ ansi_put(scr_stat *scp, u_char c)
/* Print only printables */
*scp->crtat = (scp->term.cur_attr | scr_map[c]);
scp->crtat++;
if (++scp->xpos > scp->xsize) {
if (++scp->xpos >= scp->xsize) {
scp->xpos = 0;
scp->ypos++;
}