ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class SimpleKeyboardStrategy.SimpleKeyboardStrategy(config)

I am a simple strategy for a user using the keyboard with no embelishments and no intentional typos. I subclass <no title> to help implement the Strategy Pattern.

Parameters:

type_and_verify_str(msg, start_x, start_y, font, system)

Type the message on the remote system, translating any meta keys in the message, and verify that each character shows up as expected.

Parameters:

  • msg: the formatted string to type

  • startX: the X coordinate at which the first char will appear

  • startY: the Y coordinate at which the first char will appear

  • font: the <no title> in which the characters will be rendered

  • system: a <no title> object controlling the remote system

Return: True if the entire string was typed and verified, False otherwise

type_str(msg, system)

Type the given string, translating any meta characters.

Parameters:

  • msg: the formatted string to type

  • system: a <no title> object controlling the remote system