def K(self, proto, handler, buf):
            if not buf:
                handler.eraseToLineEnd()
            elif buf == '1':
                handler.eraseToLineBeginning()
            elif buf == '2':
                handler.eraseLine()
            else:
                handler.unhandledControlSequence('\x1b[' + buf + 'K')
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/insults/insults.py/ClientProtocol.ControlSequenceParser.K/original