mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Back out cursor wrap (restore original thing)
Submitted by: Bill Paul
This commit is contained in:
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
|
@ -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++;
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue