equal
deleted
inserted
replaced
20 |
20 |
21 class Handler extends Session.Protocol_Handler |
21 class Handler extends Session.Protocol_Handler |
22 { |
22 { |
23 private val print_operations = Synchronized[List[(String, String)]](Nil) |
23 private val print_operations = Synchronized[List[(String, String)]](Nil) |
24 |
24 |
|
25 override def init(session: Session): Unit = |
|
26 session.protocol_command(Markup.PRINT_OPERATIONS) |
|
27 |
25 def get: List[(String, String)] = print_operations.value |
28 def get: List[(String, String)] = print_operations.value |
26 |
29 |
27 private def put(msg: Prover.Protocol_Output): Boolean = |
30 private def put(msg: Prover.Protocol_Output): Boolean = |
28 { |
31 { |
29 val ops = |
32 val ops = |
33 } |
36 } |
34 print_operations.change(_ => ops) |
37 print_operations.change(_ => ops) |
35 true |
38 true |
36 } |
39 } |
37 |
40 |
38 override def init(session: Session): Unit = |
|
39 session.protocol_command(Markup.PRINT_OPERATIONS) |
|
40 |
|
41 val functions = List(Markup.PRINT_OPERATIONS -> put _) |
41 val functions = List(Markup.PRINT_OPERATIONS -> put _) |
42 } |
42 } |
43 } |
43 } |